武装突袭 Wiki
注册
Advertisement
  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2
版本:
1.02

描述

描述:
Return an uniqueID of the given unit as string if it's player and empty value if it's AI. The unique ID 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.

基本句法

句法:
getPlayerUID unit
参数:
unit: Object
返回值:
String ("_SP_AI_", "_SP_PLAYER_" in SP, "" or UID number string in MP)

范例

范例1:
_uid = getPlayerUID player;

额外资讯

多人游戏:
也可以看看:
getPlayerUIDOldgetClientStategetClientStateNumber

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on April 17, 2014 - 22:29
Master85 (talk)
In Arma 3 the returned string is the steamID64 of the player. _steamProfileUrl = "http://steamcommunity.com/profiles/" + (getPlayerUID player);

Bottom Section

Advertisement