getPlayerUIDOld: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2oa
|game1= arma2oa
 
|version1= 1.63
|1.63


|gr1= Multiplayer
|gr1= Multiplayer


| 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).
|descr= 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).


{{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.}}
{{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
{{Feature|arma3|Not present in {{arma3}}.}}
 
|s1= [[getPlayerUIDOld]] unit


|p1= unit: [[Object]]
|p1= unit: [[Object]]


| [[String]]
|r1= [[String]]


|x1= <code>_uid <nowiki>=</nowiki> [[getPlayerUIDOld]] [[player]];</code>
|x1= <code>_uid = [[getPlayerUIDOld]] [[player]];</code>


|[[getPlayerUID]]
|mp= UID string is returned only in multiplayer.


|mp= UID string is returned only in multiplayer.
|seealso= [[getPlayerUID]]
}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 17:25, 6 June 2021

Hover & click on the images for description

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.
Arma 3
Not present in Arma 3.
Multiplayer:
UID string is returned only in multiplayer.
Groups:
Multiplayer

Syntax

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

Examples

Example 1:
_uid = getPlayerUIDOld player;

Additional Information

See also:
getPlayerUID

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