setFriend: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
Line 5: Line 5:


|1.00|= Game version
|1.00|= Game version
| eff = global |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets how friendly side1 is with side2. For a value smaller than 0.6 it results in being enemy, otherwise it's friendly.<br/><br/>Intended to be used on mission start. Changing value during mission can cause unexpected errors in AI behavior. |= 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. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 26: Line 30:
| [[getFriend]] |= SEEALSO  
| [[getFriend]] |= SEEALSO  


| |= MPBEHAVIOUR  
|mp= Have effect only when called on server |= MPBEHAVIOUR  


}}
}}

Revision as of 10:23, 4 April 2013

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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

Kronzky
This command might be buggy in ArmA (or the description regarding enemy status is wrong). See this discussion.
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.
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