Usage
Syntax: function onActionProjectile(parameters) { }
Explanation
It is invoked on the clientside or serverside when a projectile shot by a clientside calling of shoot collides with an object such as a player. The optional parameters vary from projectile to projectile depending on the usage of setshootparams.
Example
If used in a weapon/GUI-script:
//#CLIENTSIDE function onActionProjectile() { player.chat = "Ow, I've been hit!"; }
... Will cause the player to say "Ow, I've been hit!" when a shoot projectile hits them.
Categories
CategoryFunctionEvent
There are no comments on this page. [Add comment]