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

bz_fireWorldGM

From BZFlagWiki
Revision as of 07:20, 16 February 2012 by L4m3r (Talk | contribs) (added shot team param)

Jump to: navigation, search

void bz_fireWorldGM (int targetPlayerID, float lifetime, float *pos, float tilt, float direction, float dt, bz_eTeamType shotTeam)


Fires a Guided Missile at a player.

Parameters:
targetPlayerID  -  Player to fire the GM at.
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)
dt  -  Delay time. How many seconds to wait before firing the GM.
shotTeam  -  Team color of the missile. (Rogue by default)