enemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{Feature|Warning|" to "{{Feature|warning|")
 
(47 intermediate revisions by 16 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#E|COMREF]]
{{RV|type=command


<h2 style="color:#000066">'''enemy'''</h2>
|game1= ofp
|version1= 1.75


|gr1= Sides


'''Operand types:'''
|gr2= Broken Commands


None
|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]].}}


'''Type of returned value:'''
|s1= [[enemy]]


[[Side]]
|r1= [[Side]]


'''Description:'''
|x1= <sqs>? _side == enemy : hint "ouch"</sqs>


Enemy side (enemy to all units).
|seealso= [[sideEnemy]] [[sideFriendly]]
}}

Latest revision as of 01:24, 2 February 2024

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