ProjectileMoved

Methods
3
Fields
1

Methods

MethodReturnsDescription
getProjectile()ProjectileThe projectile.
getPosition()LocalPoint?Where it is heading: the centre of its target tile as a local point of the top level (it does not follow an aimed-at actor), nil when the…
getZ()numberHow far above the ground at its target the projectile ends: its getProjectile():getEndHeight(). Raises once the projectile is gone.

Fields

FieldTypeDescription
__eventClassstring"ProjectileMoved": the class's name, which host APIs that take the class itself read.

Method details

getPosition

getPosition: (ProjectileMoved) -> LocalPoint?

Where it is heading: the centre of its target tile as a local point of the top level (it does not follow an aimed-at actor), nil when the tile is outside the scene.

getZ

getZ: (ProjectileMoved) -> number

How far above the ground at its target the projectile ends: its getProjectile():getEndHeight(). Raises once the projectile is gone.