This wiki is archived and useful information is being migrated to the main bzflag.org website
bz_fireWorldWep
From BZFlagWiki
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 ???