getProjectile
getProjectile: (ProjectileMoved) -> ProjectileThe projectile.
| Method | Returns | Description |
|---|---|---|
getProjectile() | Projectile | The 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() | number | How far above the ground at its target the projectile ends: its getProjectile():getEndHeight(). Raises once the projectile is gone. |
| Field | Type | Description |
|---|---|---|
__eventClass | string | "ProjectileMoved": the class's name, which host APIs that take the class itself read. |
getProjectilegetProjectile: (ProjectileMoved) -> ProjectileThe projectile.
getPositiongetPosition: (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.
getZgetZ: (ProjectileMoved) -> numberHow far above the ground at its target the projectile ends: its getProjectile():getEndHeight(). Raises once the projectile is gone.