setFriend
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Armed Assault
- Version:
- 1.00
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.
Syntax
- Syntax:
- ThisSide setFriend [OtherSide , Friendliness]
- Parameters:
- ThisSide, OtherSide: Side
- Friendliness: Number
- Return Value:
- Nothing
Examples
Additional Information
- Multiplayer:
- Behaviour unknown.
Notes
Notes
Notes
- Kronzky
- This command might be buggy (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];

