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|")
 
(41 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|ENEMY]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.96|ENEMY]]
[[Category:Scripting Commands ArmA|ENEMY]]


|game1= ofp
|version1= 1.75


<h2 style="color:#000066">'''enemy'''</h2>
|gr1= Sides


|gr2= Broken Commands


'''Operand types:'''
|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]].}}


None
|s1= [[enemy]]


'''Type of returned value:'''
|r1= [[Side]]


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


'''Compatibility:'''
|seealso= [[sideEnemy]] [[sideFriendly]]
 
}}
Added in version '''1.78'''
 
'''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