setFriend: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "</dd> </dl>" to "</dd> </dl>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| ofpe | |game1= ofpe | ||
| 1.00 | |version1= 1.00 | ||
|game2= arma1 | |game2= arma1 | ||
Line 25: | Line 25: | ||
|gr1= Sides | |gr1= Sides | ||
| Sets how friendly side1 is with side2. For a value smaller than 0.6 it results in being enemy, otherwise it is friendly. | |descr= Sets how friendly side1 is with side2. For a value smaller than 0.6 it results in being enemy, otherwise it is friendly. | ||
Intended to be used on mission start. Changing value during mission can cause unexpected errors in AI behavior. See also [[Side relations]]. | Intended to be used on mission start. Changing value during mission can cause unexpected errors in AI behavior. See also [[Side relations]]. | ||
|s1= | |s1= side1 [[setFriend]] [side2, value] | ||
|p1= side1: [[Side]] | |p1= side1: [[Side]] | ||
|p2= | |||
|p3 | |p2= side2: [[Side]] | ||
|p3= value: [[Number]] | |||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Line 40: | Line 41: | ||
|x1= <code>[[west]] [[setFriend]] [<nowiki/>[[resistance]], 0];</code> | |x1= <code>[[west]] [[setFriend]] [<nowiki/>[[resistance]], 0];</code> | ||
| [[getFriend]], [[BIS_fnc_sideIsFriendly]], [[BIS_fnc_sideIsEnemy]], [[Side relations]] | |seealso= [[getFriend]], [[BIS_fnc_sideIsFriendly]], [[BIS_fnc_sideIsEnemy]], [[Side relations]] | ||
}} | }} | ||
Line 51: | Line 50: | ||
<dt class="note">[[User:Kronzky|Kronzky]]</dt> | <dt class="note">[[User:Kronzky|Kronzky]]</dt> | ||
<dd class="note">This command might be buggy in ArmA (or the description regarding enemy status is wrong). See {{ExternalLink|link= http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=81449b5fff69fec63836f0857d2a08dc;act=ST;f=71;t=56505|text= this}} discussion. | <dd class="note">This command might be buggy in ArmA (or the description regarding enemy status is wrong). See {{ExternalLink|link= http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=81449b5fff69fec63836f0857d2a08dc;act=ST;f=71;t=56505|text= this}} discussion. | ||
</dd> | |||
<dt><dt> | <dt><dt> | ||
<dd class="notedate">Posted on 11:25, 30 November 2007</dd> | <dd class="notedate">Posted on 11:25, 30 November 2007</dd> | ||
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt> | <dt class="note">[[User:Ceeeb|Ceeeb]]</dt> | ||
<dd class="note"> 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. | <dd class="note"> 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. | ||
</dd> | |||
<dt><dt> | <dt><dt> | ||
<dd class="notedate">Posted on 15:57, 27 February 2008</dd> | <dd class="notedate">Posted on 15:57, 27 February 2008</dd> | ||
<dt class="note">[[User:T_D|T_D]]</dt> | <dt class="note">[[User:T_D|T_D]]</dt> | ||
<dd class="note"> 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:<code> | <dd class="note"> 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: | ||
<code>[[resistance]] [[setFriend]] [<nowiki/>[[east]], 0]; | |||
[[east]] [[setFriend]] [<nowiki/>[[resistance]], 0];</code> | |||
</dd> | </dd> | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on October 11, 2014 - 20:43 (UTC)</dd> | <dd class="notedate">Posted on October 11, 2014 - 20:43 (UTC)</dd> | ||
<dt class="note">[[User:Benargee|Benargee]]</dt> | <dt class="note">[[User:Benargee|Benargee]]</dt> | ||
<dd class="note"> ( | <dd class="note"> ({{arma3}} 1.30 stable) It is possible to make a side hostile towards itself. | ||
<code>[[west]] [[setFriend]] [<nowiki/>[[west]], 0];</code> | <code>[[west]] [[setFriend]] [<nowiki/>[[west]], 0];</code> | ||
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. | 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. | |||
</dd> | </dd> | ||
</dl> | </dl> |
Revision as of 18:16, 13 June 2021
Description
- Description:
- Sets how friendly side1 is with side2. For a value smaller than 0.6 it results in being enemy, otherwise it is friendly. Intended to be used on mission start. Changing value during mission can cause unexpected errors in AI behavior. See also Side relations.
- Groups:
- Sides
Syntax
- Syntax:
- side1 setFriend [side2, value]
- Parameters:
- side1: Side
- side2: Side
- value: Number
- Return Value:
- Nothing
Examples
- Example 1:
west setFriend [resistance, 0];
Additional Information
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
- 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 (dead link) 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];
- 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.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Sides
- Scripting Commands: Global Effect
- Scripting Commands: Server Execution