getPlayerUID: Difference between revisions
Jump to navigation
Jump to search
(More useful example.) |
(Added a compatibility note.) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Return an uniqueID of the given unit as string if it's player and empty value if it's AI. |= Description | | Return an uniqueID of the given unit as string if it's player and empty value if it's AI. | ||
Note: while for [[ArmA 2]] or [[ArmA 2: Operation Arrowhead]] 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, future game versions may provide a non-numeric value as a result.|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 13:01, 21 June 2012
Description
- Description:
- Return an uniqueID of the given unit as string if it's player and empty value if it's AI. Note: while for ArmA 2 or ArmA 2: Operation Arrowhead 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, future game versions may provide a non-numeric value as a result.
- Multiplayer:
- UID string is returned only in multiplayer.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_uid = getPlayerUID 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