This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Bz fireWorldWep"

From BZFlagWiki
Jump to: navigation, search
m
(Add some more information)
Line 13: Line 13:
 
| param4        = tilt
 
| param4        = tilt
 
| param4type    = float
 
| param4type    = float
| param4desc    = The tilt of the weapon.
+
| param4desc    = The tilt of the weapon in radians.
 
| param5        = direction
 
| param5        = direction
 
| param5type    = float
 
| param5type    = float
| param5desc    = The direction of which to fire the world weapon. (rotation)
+
| param5desc    = The direction of which to fire the world weapon in radians. (rotation)
 
| param6        = shotID
 
| param6        = shotID
 
| param6type    = int
 
| param6type    = int
| param6desc    = Shot ID of the world weapon. Each shot is given a unique shot ID which helps for collision detection (?).
+
| param6desc    = Shot ID of the world weapon. Each shot is given a unique shot ID for shot tracking.
 
| param7        = dt
 
| param7        = dt
 
| param7type    = float
 
| param7type    = float
| param7desc    = What is this ???
+
| param7desc    = Delay time. How many seconds the weapon waits before firing.
 
}}
 
}}

Revision as of 19:16, 17 May 2009

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.