OnFireWeapon

Usage

void OnFireWeapon( int WeaponNumber, int OriginX, int OriginY, int OriginZ, int SwivelAngle, int TiltAngle, int OwnerObjectId)


Summary

This event is fired whenever a weapon is fired.


More Information

Use this event in the game script to spawn projectiles whenever a weapon is fired.

WeaponNumber = the weapon type number that was fired.
OriginX, OriginY, OriginZ = The coordinates of the weapon (generall the centre of the object that fired it).
SwivelAngle = The direction the weapon is pointing.
TiltAngle = The upwards angle the weapon is pointing.
OwnerObjectId = the object ID of the object that fired the weapon.

This function is generally located in the game script.  If you override this function in a map script then the game script's version will not be called.


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 to 2009 by James Bunting
www.jbplay.com/games/rod3d/

This page was automatically generated by James' Script Docs Generator