Actions on Events

v1.0

Actions from Projectile Events

There are a number of ActionOnEvent classes that hook directly into the Projectile class, subscribing to the events the class provides. Generally these would be added to a specific Projectile object, but they could be added to other classes, so long as the Projectile field is populated.

circle-check

Other classes like ActionRunner can also be used on Projectiles to perform actions.

Actions from Projectile Spawner Events

There are also a number of ActionOnEvent classes that hook directly into the ProjectileSpawner class, just as the ones that hook into the Projectile class.

The same pattern is used for assigning a new ProjectileSpawner at runtime as the Projectile event classes.

Last updated