getPlayerUIDOld: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) m (Fix category) |
||
Line 9: | Line 9: | ||
| 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). | | 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). | ||
{{Important | 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).<br>Moreover, game versions since [[ArmA 2: Operation Arrowhead]] 1.61 provide a non-numeric value as a result.}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[getPlayerUIDOld]] unit |SYNTAX= | ||
|p1= unit: [[Object]] |PARAMETER1= | |p1= unit: [[Object]] |PARAMETER1= | ||
| [[String]] |RETURNVALUE= | | [[String]] |RETURNVALUE= | ||
|x1= <code>_uid <nowiki>=</nowiki> [[getPlayerUIDOld]] [[player]];</code> |EXAMPLE1= | |x1= <code>_uid <nowiki>=</nowiki> [[getPlayerUIDOld]] [[player]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[getPlayerUID]] | |[[getPlayerUID]] |SEEALSO= | ||
|mp= UID string is returned only in multiplayer. |MPBEHAVIOUR= | |mp= UID string is returned only in multiplayer. |MPBEHAVIOUR= | ||
}} | }} | ||
Line 41: | Line 34: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]] |
Revision as of 13:01, 19 September 2019
Description
- Description:
- 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).
- Multiplayer:
- UID string is returned only in multiplayer.
- Groups:
- Uncategorised
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