FANDOM


  Effects local

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.08

描述

描述:
Sets the name of a location or a person. In Arma 3 this can be used to set name of a person but only in single player.

基本句法

句法:
object setName name
参数:
object: Location or Object

name: String
返回值:
Nothing

替代句法

句法:
unit setName [name, firstName, lastName]
参数:
unit: Object

name: String

firstName: String

lastName: String
返回值:
Nothing

范例

范例1:
myLocation setName "My Location Name";

范例2:
player setName "New Name";

范例3:
player setName ["Ben Kerry","Ben","Kerry"];

额外资讯

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

namenameSoundsetNameSound

注意事项

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

Notes

Posted on July 9, 2010‎
kju
Appears to be only for the 3d editor.

Posted on September 19, 2013‎
Druid
Support of a person as the first parameter from Arma 3 v. 1.02.

Posted on April 12, 2014
Waffle SS.
Seems to have no effect on players in Multiplayer. (ArmA 3 v1.00)

Posted on August 18, 2014
Pierre MGI
Only last name will appear in command bar i.e. this setname _mynameArray will display _mynameArray select 2. If setname is used with a string : this setname "blah", nothing occurs in command bar and default randomized name is displayed.

Dealing with the units' names in a script, _x (in a foreach units group, for example) will return the "object" as B ALFA 4-1:2 or the name written in ai unit name field in editor (if exists). This context is rather a "variable name" for each object (ai) than an "identity name" as given via setname function.

Bottom Section

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

查看其他FANDOM

随机维基