enemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "{{Feature|Warning|" to "{{Feature|warning|")
 
(33 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofpr |= Game name
|game1= ofp
|version1= 1.75


|1.78|= Game version
|gr1= Sides
____________________________________________________________________________________________


|Enemy side (enemy to all units).  |= Description
|gr2= Broken Commands
____________________________________________________________________________________________


| [[Side]] <nowiki>=</nowiki> '''enemy''' |= Syntax
|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]].}}


| [[Side]] |= Return value
|s1= [[enemy]]  
____________________________________________________________________________________________


 
|r1= [[Side]]
|x1= <pre>?_side==enemy: hint "ouch"</pre> |= Example 1
____________________________________________________________________________________________
|  |= See also


|x1= <sqs>? _side == enemy : hint "ouch"</sqs>
|seealso= [[sideEnemy]] [[sideFriendly]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
No work in Armed Assault
<!-- Note Section END -->
</dl>
ARMA2: Note that 'enemy' does NOT appear in this list:
http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA2
See also 'sideEnemy' and 'sideFriendly'
~~
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|ENEMY]]
[[Category:Scripting Commands OFP 1.96|ENEMY]]
[[Category:Scripting Commands ArmA|ENEMY]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Sides|{{uc:{{PAGENAME}}}}]]

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