Is it possible to disable collision for RPGEvent?
I have a skill that is thrown by a mob which is also RPGEvent and I want it to follow the player without respect to collision, just in "straight" line.
I tried this:
import { EventData, RpgEvent, Speed } from '@rpgjs/server';
import { MoveClientMode } from '@rpgjs/types';
// @ts-ignore
@EventData({
name: 'flying-eye-attack-event',
hitbox: {
width: 32,
height: 32
}
})
export default class FlyingEyeAttackEvent extends RpgEvent {
onInit() {
this.speed = Speed.Fastest;
this.setGraphic('flying-eye-skill');
this.through = true;
this.throughOtherPlayer = true;
this.checkCollision = false;
}
}
but this does not go through the collision objects 😕
Also I have seen interesting parameters to set in source code:
/*
Properties for move mode
*/
checkCollision: boolean = true
clientModeMove: ClientMode = MoveClientMode.ByDirection
behavior: Behavior = Behavior.Direction
Are these worth attention? because these are not described in the documentation. Probably not coincidentally.
Check video: https://imgur.com/EPbXXex