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
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki