enemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Fix SQF)
Line 8: Line 8:
|gr2= Broken Commands
|gr2= Broken Commands


|descr= Returns ''Enemy'' side which is hostile to all units. {{Feature|Warning|This command is not functional and appears to have been replaced by [[sideEnemy]].}}
|descr= Returns ''Enemy'' side which is hostile to all units.
{{Feature|Warning|This command is not functional and appears to have been replaced by [[sideEnemy]].}}


|s1= [[enemy]]  
|s1= [[enemy]]  
Line 14: Line 15:
|r1= [[Side]]
|r1= [[Side]]


|x1= <sqf>[[?]]_side == enemy: hint "ouch"</sqf>
|x1= <sqs>? _side == enemy : hint "ouch"</sqs>


|seealso= [[sideEnemy]] [[sideFriendly]]
|seealso= [[sideEnemy]] [[sideFriendly]]
}}
}}

Revision as of 16:33, 1 November 2022

Hover & click on the images for description

Description

Description:
Returns Enemy side which is hostile to all units.
This command is not functional and appears to have been replaced by sideEnemy.
Groups:
SidesBroken Commands

Syntax

Syntax:
enemy
Return Value:
Side

Examples

Example 1:
? _side == enemy : hint "ouch"

Additional Information

See also:
sideEnemy sideFriendly

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