sideEnemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(39 intermediate revisions by 2 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


|gr1= Sides |GROUP1=
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


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


| '''sideEnemy''' |SYNTAX=
|game5= arma2oa
|version5= 1.50


| [[Side]] |RETURNVALUE=
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00


|x1= <code>[[if]] ([[side]] [[player]] == [[sideEnemy]]) [[then]] {
|game7= arma3
    [[hint]] "We've got a renegade!";
|version7= 0.50
};</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[addRating]], [[rating]], [[Side]], [[side]], [[west]], [[east]], [[resistance]], [[civilian]], [[sideLogic]], [[sideFriendly]], [[sideUnknown]], [[playerSide]], [[sideEmpty]], [[sideAmbientLife]], [[Side relations]] |SEEALSO=
|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>
</dl>
if (side player == sideEnemy) then
{
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 Armed Assault|SIDEENEMY]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:34, 3 September 2024

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