getPlayerUIDOld: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{arma2}}" to "{{GameCategory|arma2|link= y}}")
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |= Game name
|game1= arma2oa
|version1= 1.63


|1.63|= Game version
|gr1= Multiplayer
____________________________________________________________________________________________


| Returns the old UniqueID of Arma 2 OA of the given unit as string if it's player and empty value if it's 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).


Note: 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 Number 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.|= Description
{{Feature | important | While for {{GameCategory|arma2|link= y}} 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 |= Syntax
{{Feature|arma3|Not present in {{arma3}}.}}


|p1= unit: [[Object]] |= PARAMETER1
|s1= [[getPlayerUIDOld]] unit


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


|p3= |= PARAMETER3
|r1= [[String]]


| [[String]] |= RETURNVALUE
|x1= <sqf>_uid = getPlayerUIDOld player;</sqf>


|mp= UID string is returned only in multiplayer.


|x1= <code>_uid <nowiki>=</nowiki> [[getPlayerUIDOld]] [[player]];</code> |= Example 1
|seealso= [[getPlayerUID]]
 
____________________________________________________________________________________________
 
|[[getPlayerUID]] |= SEEALSO
 
|mp= UID string is returned only in multiplayer.  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA_2_OA:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]]

Latest revision as of 13:01, 19 March 2024

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