This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

bz_fireWorldWep

From BZFlagWiki
Revision as of 23:52, 30 December 2008 by Yassen (talk | contribs) (Added bz_fireWorldWep)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

void bz_fireWorldWep (const char* flagType, float lifetime, float *pos, float tilt, float direction, int shotID, float dt)


Fires a world weapon.

Parameters:
flagType  -  Flag type the world weapon will fire with.
lifetime  -  How long the world weapon will "live".
*pos  -  Position the world weapon will fire from.
tilt  -  The tilt of the weapon.
direction  -  The direction of which to fire the world weapon. (rotation)
shotID  -  Shot ID of the world weapon. Each shot is given a unique shot ID which helps for collision detection (?).
dt  -  What is this ???


const char* flagType, float lifetime, float *pos, float tilt, float direction, int shotID , float dt