bz_fireWorldWep

From BZFlagWiki
Revision as of 19:16, 17 May 2009 by Yassen (Talk | contribs) (Add some more information)

Jump to: navigation, 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 in radians.
direction  -  The direction of which to fire the world weapon in radians. (rotation)
shotID  -  Shot ID of the world weapon. Each shot is given a unique shot ID for shot tracking.
dt  -  Delay time. How many seconds the weapon waits before firing.