This wiki is archived and useful information is being migrated to the main bzflag.org website
Difference between revisions of "Bz getPlayerVelocity"
From BZFlagWiki
m (Added bz_getPlayerVelocity) |
m (Typo) |
||
Line 1: | Line 1: | ||
{{apicall | {{apicall | ||
− | | name = | + | | name = bz_getPlayerVelocity |
| description = Fills the float array "vel" with the current velocity of the player. | | description = Fills the float array "vel" with the current velocity of the player. | ||
| param1 = playerID | | param1 = playerID |
Latest revision as of 00:16, 12 February 2009
bool bz_getPlayerVelocity (int playerID, float vel [3])
Minimum API Version: 2.99.x or later
Fills the float array "vel" with the current velocity of the player.
Parameters:
playerID - Player to lookup.
vel [3] - Velocity (x, y, z)
Returns:
Whether the player exists.