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

Difference between revisions of "Bz getPlayerFlag"

From BZFlagWiki
Jump to: navigation, search
(New page: {{apicall | name = bz_getPlayerFlag | description = Gets the flag id of the flag that the specified player is currently holding. | param1 = playerID | param1type = int...)
 
Line 6: Line 6:
 
| param1desc    = The id of the player to check
 
| param1desc    = The id of the player to check
 
| returntype    = const char*
 
| returntype    = const char*
| return        = The two-character flag id of the flag that the player specified is holding, or NULL if the player does not exist or is not currently holding a flag
+
| returns      = The two-character flag id of the flag that the player specified is holding, or NULL if the player does not exist or is not currently holding a flag
 
}}
 
}}

Revision as of 06:41, 15 December 2008

const char* bz_getPlayerFlag (int playerID)


Gets the flag id of the flag that the specified player is currently holding.

Parameters:
playerID  -  The id of the player to check
Returns:
The two-character flag id of the flag that the player specified is holding, or NULL if the player does not exist or is not currently holding a flag