getPlayerUIDOld

From Bohemia Interactive Community
(Redirected from getplayeruidold)
Jump to navigation Jump to search
Introduced with Arma 2: Operation Arrowhead version 1.631.63
Hover & click on the images for descriptions

Description

Description:
Returns the old UniqueID of Arma 2 OA of the given unit as string if it is player and empty value if it is AI. The uniqueID may be up to 100 characters long and may contain numbers, uppercase letters and underscores (the value can be used to construct a valid variable name by appending to another valid variable name).
While for Arma 2 or Arma 2: Operation Arrowhead until version 1.60 the result always contains a number, it should be always handled as an opaque string. Converting it to a Number can cause precision problems, as it cannot accurately represent integers above 16777216 (2^24).
Moreover, game versions since Arma 2: Operation Arrowhead 1.61 provide a non-numeric value as a result.
Multiplayer:
UID string is returned only in multiplayer.

Syntax

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

Examples

Example 1:
_uid = getPlayerUIDOld player;

Additional Information

See also:
getPlayerUID
Groups:
Multiplayer

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