getPlayerUIDOld: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
Line 9: Line 9:
|  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).
|  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).


{{Important | While for [[{{arma2}}]] or [[{{arma2oa}}]] 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).<br>Moreover, game versions since [[{{arma2oa}}]] 1.61 provide a non-numeric value as a result.}}
{{Feature | important | While for [[{{arma2}}]] or [[{{arma2oa}}]] 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).<br>Moreover, game versions since [[{{arma2oa}}]] 1.61 provide a non-numeric value as a result.}}


| [[getPlayerUIDOld]] unit
| [[getPlayerUIDOld]] unit

Revision as of 02:11, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Multiplayer:
UID string is returned only in multiplayer.
Groups:
Multiplayer

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object
Return Value:
Return value needed

Examples

Example 1:
_uid = getPlayerUIDOld player;

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note