setFriend: Difference between revisions
Jump to navigation
Jump to search
(added important note) |
mNo edit summary |
||
Line 27: | Line 27: | ||
<dd class="notedate"></dd> | <dd class="notedate"></dd> | ||
<dt class="note">'''[[User:Kronzky|Kronzky]]'''</dt> | <dt class="note">'''[[User:Kronzky|Kronzky]]'''</dt> | ||
<dd class="note">This command might be buggy (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> | <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> | ||
<dd class="notedate"></dd> | <dd class="notedate"></dd> |
Revision as of 00:41, 4 October 2008
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.
- Groups:
- Uncategorised
Syntax
- Syntax:
- ThisSide setFriend [OtherSide , Friendliness]
- Parameters:
- ThisSide, OtherSide: Side
- Friendliness: Number
- Return Value:
- Nothing
Examples
- Examples:
- Example needed
Additional Information
- See also:
- See also needed
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];