setFriend: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (add note date) |
||
Line 37: | Line 37: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate"> | <dd class="notedate">Posted on 18:49, 28 December 2006 | ||
<dt class="note">'''[[User:Kronzky|Kronzky]]''' | <dt class="note">'''[[User:Kronzky|Kronzky]]''' | ||
<dd class="note">This command might be buggy in ArmA (or the description regarding enemy status is wrong). See [http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=81449b5fff69fec63836f0857d2a08dc;act=ST;f=71;t=56505 this] discussion. | <dd class="note">This command might be buggy in ArmA (or the description regarding enemy status is wrong). See [http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=81449b5fff69fec63836f0857d2a08dc;act=ST;f=71;t=56505 this] discussion. | ||
<dd class="notedate"> | <dd class="notedate">Posted on 11:25, 30 November 2007 | ||
<dt class="note">'''[[User:Ceeeb|Ceeeb]]''' | <dt class="note">'''[[User:Ceeeb|Ceeeb]]''' | ||
<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 class="notedate"> | <dd class="notedate">Posted on 15:57, 27 February 2008 | ||
<dt class="note">'''[[User:T_D|T_D]]''' | <dt class="note">'''[[User:T_D|T_D]]''' | ||
<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 [East, 0]; | <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 [East, 0]; |
Revision as of 14:40, 9 May 2014
Description
- Description:
- 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.
- Multiplayer:
- Have effect only when called on server
- Groups:
- Uncategorised
Syntax
- Syntax:
- side1 setFriend [side2 , value]
- Parameters:
- side1: Side
- [side2 , value]: Array
- side2: Side
- value: Number
- Return Value:
- Nothing
Examples
- Example 1:
WEST setFriend [RESISTANCE, 0];
Additional Information
- See also:
- getFriend
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
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
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Command Group: Sides
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters