Fandom

武装突袭 Wiki

SetFriend

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

您使用了广告屏蔽软件!


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

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

  Effects of this scripting command are broadcasted over the network and happen on every computer in the networkThis scripting command must be executed on the server to work properly in multiplayer

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Sets how friendly side1 is with side2. For a value smaller than 0.6 it results in being enemy, otherwise it's friendly.

Intended to be used on mission start. Changing value during mission can cause unexpected errors in AI behavior. See also Side relations.

基本句法

句法:
side1 setFriend [side2 , value]
参数:
side1: Side

[side2 , value]: Array

side2: Side

value: Number
返回值:
Nothing

范例

范例1:
west setFriend [resistance, 0];

额外资讯

多人游戏:
Have effect only when called on server
也可以看看:

getFriendBIS_fnc_sideIsFriendlyBIS_fnc_sideIsEnemySide relations

注意事项

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

Notes

Posted on 18:49, 28 December 2006
Kronzky
This command might be buggy in ArmA (or the description regarding enemy status is wrong). See this discussion.

Posted on 11:25, 30 November 2007
Ceeeb
Setting the civilian side to be the enemy of any other side will result in the other side attacking inanimate mission editor placed objects such as empty vehicles and static objects, since these objects belong to the civilian side.

Posted on 15:57, 27 February 2008
T_D
Be aware that this command only sets the friendliness of one side. If you want to have both sides attacking each other, you have to set both:Resistance setFriend [East, 0]; East setFriend [Resistance, 0];

Bottom Section

Posted on October 11, 2014 - 20:43 (UTC)
Benargee
(Arma 3 1.30 stable) It is possible to make a side hostile towards itself. west setFriend [west, 0]; It is only possible to do so with west/blufor, east/opfor, independent/resistance and civilian. This essentially creates a free for all deathmatch. Affects AI behaviour too.

更多维基

随机维基