Skip to content

fireOnTheMove beta ​

Function of @v12-engine/engine

ts
export declare function fireOnTheMove(world: World, entity: Entity, current: number | undefined, dt: number): number | undefined;

One tick of an attack that fires as the unit walks (AttackDef.onTheMove): what it shot at last tick while it can still be hit from where the unit is, else the best in range (looked for every fourth tick), swung at without a stop or a turn. Gives back what it is shooting at, none for nothing