enemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofpr
|game1= ofp


|1.78
|version1= 1.75
 
|game2= ofpe
 
|version2=
 
|game3= arma1
 
|version3=
 
|game4= arma2
 
|version4=
 
|game5= arma2oa
 
|version5=
 
|game6= tkoh
 
|version6=
 
|game7= arma3
 
|version7=


|gr1= Sides
|gr1= Sides
Line 9: Line 33:
|gr2= Broken Commands
|gr2= Broken Commands


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


| [[Side]] <nowiki>=</nowiki> '''enemy'''
|r1= [[Side]]


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


 
|x1= <pre>?_side==enemy: hint "ouch"</pre>
|seealso= [[sideEnemy]], [[sideFriendly]]
|seealso= [[sideEnemy]], [[sideFriendly]]
}}
}}

Revision as of 11:22, 27 March 2021

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 be replaced by sideEnemy.
Groups:
SidesBroken Commands

Syntax

Syntax:
enemy
Return Value:
Side

Examples

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

Additional Information

See also:
sideEnemysideFriendly

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
No work in Armed Assault

ARMA2: Note that 'enemy' does NOT appear in this list: http://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_2

See also 'sideEnemy' and 'sideFriendly' BarmyArmy

No work in OFP 1.96, not present in commands list in flashpointresistance.exe 1.96. denisko.redisko (denvdmj)