setFriend: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}") |
||
Line 60: | Line 60: | ||
[[Category:Scripting Commands|SETFRIEND]] | [[Category:Scripting Commands|SETFRIEND]] | ||
[[Category:Command_Group:_Sides|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Sides|{{uc:{{PAGENAME}}}}]] | ||
{{GameCategory|ofpe|Scripting Commands}} | |||
{{GameCategory|arma1|Scripting Commands}} | {{GameCategory|arma1|Scripting Commands}} | ||
{{GameCategory|arma2|Scripting Commands}} | {{GameCategory|arma2|Scripting Commands}} |
Revision as of 21:36, 10 January 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.
- Multiplayer:
- Have effect only when called on server
- Groups:
- Sides
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
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
- 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 Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Sides
- Scripting Commands: Global Effect
- Scripting Commands: Server Execution
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands