Difference between revisions of "getPlayerUID"

From Bohemia Interactive Community
Jump to navigation Jump to search
(More useful example.)
Line 21: Line 21:
  
  
|x1= <code>_uid <nowiki>=</nowiki> '''getPlayerUID''' [[vehicle]] [[player]];</code> |= Example 1
+
|x1= <code>_uid <nowiki>=</nowiki> '''getPlayerUID''' [[player]];</code> |= Example 1
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________

Revision as of 13:57, 21 June 2012

Introduced with Arma 2 version 1.021.02
Hover & click on the images for descriptions

Description

Description:
Return an uniqueID of the given unit as string if it's player and empty value if it's AI.
Multiplayer:
UID string is returned only in multiplayer.

Syntax

Syntax:
getPlayerUID unit
Parameters:
unit: Object
Return Value:
String

Examples

Example 1:
_uid = getPlayerUID player;

Additional Information

See also:
See also needed

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section