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|")
 
(46 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]]


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


Added in version '''1.78'''
|seealso= [[sideEnemy]] [[sideFriendly]]
 
}}
'''Description:'''
 
Enemy side (enemy to all units).

Latest revision as of 00: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