Findplayer: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
'''findplayer''' '' | '''findplayer''' <[[gamevar]]><br> | ||
'''findotherplayer''' <[[gamevar]]> | |||
Returns the distance and ID of the nearest player. Parameter taken is the [[gamevar]] to return the distance to, while [[RETURN]] holds the ID of the player found. Note that if run from the APLAYER actor or from a player event, '''findotherplayer''' must be used, as '''findplayer''' will return the ID of the player which called it. | |||
Returns the distance and ID of the nearest player. Parameter taken is the [[gamevar]] to return the distance to, while [[RETURN]] holds the ID of the player found. Note that if run from the APLAYER actor or from a player event, '''findotherplayer''' must be used as '''findplayer''' will return the ID of the player which called it. | |||
[[Category:EDuke commands]] | [[Category:EDuke commands]] | ||
[[Category:Player manipulation]] | [[Category:Player manipulation]] |
Latest revision as of 20:05, 7 January 2011
findplayer <gamevar>
findotherplayer <gamevar>
Returns the distance and ID of the nearest player. Parameter taken is the gamevar to return the distance to, while RETURN holds the ID of the player found. Note that if run from the APLAYER actor or from a player event, findotherplayer must be used, as findplayer will return the ID of the player which called it.