setFriend: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added note about the civilian side.)
(added important note)
Line 32: Line 32:
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
<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>
<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>
<dd class="notedate"></dd>
<dt class="note">'''[[User:T_D|T_D]]'''</dt>
<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];
East setFriend [Resistance, 0];</code> </dd>
<!-- Note Section END -->
<!-- Note Section END -->


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>

Revision as of 16:57, 27 February 2008

-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.
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 (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