武装突袭 Wiki
注册
Advertisement
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Returns the name of the variable which contains a primary editor reference to this object. This is the variable given in the Insert Unit dialog / name field, in the editor. It can be changed using setVehicleVarName.
If object refers to a vehicle that wasn't given a name in the editor, the return value is an empty string, "".
Since it is possible to setVehicleVarName individually on each PC, the value of vehicleVarName returned will be local to the PC on which command is executed.

基本句法

句法:
vehicleVarName object
参数:
object: Object
返回值:
String

范例

范例1:
hint vehicleVarName player;

额外资讯

多人游戏:
-
也可以看看:
setVehicleVarName

注意事项

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

Notes

Bottom Section

Posted on April 19, 2015 - 08:45 (UTC)
Killzone Kid
To get variable names referencing an object in mission namespace: KK_fnc_objectVarNames = { private "_names"; _names = []; { if (missionNamespace getVariable _x isEqualTo _this) then { _names pushBack _x; }; } forEach allVariables missionNamespace; _names }; //example myGroup = group player; aGroup = group player; hint str (group player call KK_fnc_objectVarNames); //["agroup","mygroup"]
Advertisement