sideEnemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(59 intermediate revisions by 12 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 (used for renegades). |= Description
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


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


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


| |= See also
|game6= tkoh
|version6= 1.00


}}
|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>
</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 ArmA|SIDEENEMY]]

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