GetRandomPlayer: Difference between revisions
Jump to navigation
Jump to search
JonChappell (talk | contribs) No edit summary |
JonChappell (talk | contribs) m (→Example) |
||
Line 10: | Line 10: | ||
==Example== | ==Example== | ||
player = [[GetRandomPlayer]] ( | player = [[GetRandomPlayer]] ( ) | ||
[[ serverChat ]] ( [[GetPlayerName]] ( player ) , " is now the fugitive!" ) | [[ serverChat ]] ( [[GetPlayerName]] ( player ) , " is now the fugitive!" ) |
Revision as of 17:27, 25 March 2006
Description
This function returns a random player object. It is useful for assigning objectives to random players in a Manhunt mode, for example.
Syntax
player GetRandomPlayer ()
Required Arguments
This function has no arguments.
Example
player = GetRandomPlayer ( ) serverChat ( GetPlayerName ( player ) , " is now the fugitive!" )