Usage

Syntax: function onPlayerShoots(TServerPlayer playerObject, TProjectile projectileObject) { }

Explanation

Is called when a player shoots something using shoot.
Only called serverside.

Example

function onPlayerShoots(playerObject, projectileObject)
{
  echo(playerObject.nick @ " shot something at an angle of " @ projectileObject.angle);
}

... echoes the name of the player who shot the projectile and the angle of the projectile.

Categories

CategoryFunctionEvent

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki