onClientProjectileCreation
Client-side
Server-side
Shared
This event is triggered when a projectile is created.
Parameters
element creator
- creator: the element that created the projectile.
Source
element: The source of this event is the projectile that was created.
Canceling
This event cannot be cancelled. To remove the projectile you can use setElementPosition (somewhere far away) and then destroyElement (which makes it explode).
Code Examples
client
This will output a chatbox message when someone creates a projectile.
function projectileCreation() outputChatBox("A projectile was created!")endaddEventHandler("onClientProjectileCreation", root, projectileCreation)
See Also
Projectile Events
- onClientProjectileCreation