sideEnemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (Text replacement - "Side relations" to "Side Relations")
 
(46 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofpr |= Game name
|game1= ofp
|version1= 1.78


|1.78|= Game version
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


| The enemy [[Side|side]] (used for renegades). Unit of this side is enemy to everyone.
|game3= arma1
<br>To become one, you can attack members of your own side or use [[addRating]].
|version3= 1.00
<br>When below a [[rating]] of -2000 units switch automatically to this side. |= Description
____________________________________________________________________________________________


| '''sideEnemy''' |= Syntax
|game4= arma2
|version4= 1.00


| [[Side]] |= Return value
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


|x1= <code>[[if]] ([[side]] [[player]] == [[sideEnemy]]) [[then]] {
|game6= tkoh
    [[hint]] "We've got a renegade!";
|version6= 1.00
};</code> |= Example 1
____________________________________________________________________________________________


| [[addRating]], [[rating]], [[Side]], [[side]], [[west]], [[east]], [[resistance]], [[civilian]], [[sideLogic]], [[sideFriendly]], [[sideUnknown]], [[playerSide]], [[sideEmpty]], [[sideAmbientLife]], [[Side relations]] |= See also
|game7= arma3
|version7= 0.50


}}
|gr1= Sides
 
|descr= The enemy [[Side|side]] which is used for renegades. Units of this side are hostile to everyone.
* To join [[sideEnemy]], you can attack members of your own side or use [[addRating]].
* When below a [[rating]] of -2000 units switch automatically to this side.
 
|s1= [[sideEnemy]]


<h3 style="display:none">Notes</h3>
|r1= [[Side]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>if (side player == sideEnemy) then
</dl>
{
hint "We've got a renegade!";
};</sqf>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[addRating]] [[rating]] [[Side]] [[side]] [[west]] [[east]] [[resistance]] [[civilian]] [[sideLogic]] [[sideFriendly]] [[sideUnknown]] [[playerSide]] [[sideEmpty]] [[sideAmbientLife]] [[Side Relations]]
[[Category:Scripting Commands|SIDEENEMY]]
}}
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SIDEENEMY]]
[[Category:Scripting Commands ArmA|SIDEENEMY]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Sides|{{uc:{{PAGENAME}}}}]]

Latest revision as of 21:02, 12 June 2023

Hover & click on the images for description

Description

Description:
The enemy side which is used for renegades. Units of this side are hostile to everyone.
  • To join sideEnemy, you can attack members of your own side or use addRating.
  • When below a rating of -2000 units switch automatically to this side.
Groups:
Sides

Syntax

Syntax:
sideEnemy
Return Value:
Side

Examples

Example 1:
if (side player == sideEnemy) then { hint "We've got a renegade!"; };

Additional Information

See also:
addRating rating Side side west east resistance civilian sideLogic sideFriendly sideUnknown playerSide sideEmpty sideAmbientLife Side Relations

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