BIS fnc enemySides: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "Side relations" to "Side Relations")
 
(34 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Sides


|1.00|= Game version
|descr= Returns sides hostile to the given [[Side|side]] / [[Object|object]].
____________________________________________________________________________________________


| <pre>/*
|s1= input call [[BIS_fnc_enemySides]]


Description:
|p1= input: [[Object]] or [[Side]] - side or object whose hostile sides should be returned
Returns sides enemy to the given side / object


Parameter(s):
|r1= [[Array]] containing all hostile sides of given side or object
0: SIDE or OBJECT


Returns:
|x1= <sqf>player call BIS_fnc_enemySides;</sqf>
ARRAY of SIDEs
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_enemySides]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[side]] [[countSide]] {{Link|CfgVehicles Config Reference#side}} [[Side]] [[playerSide]] [[west]] [[east]] [[resistance]] [[civilian]] [[sideLogic]] [[sideFriendly]] [[sideEnemy]] [[sideUnknown]] [[sideEmpty]] [[sideAmbientLife]] [[Side Relations]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Sides|{{uc:enemySides}}]]
[[Category:Functions|{{uc:enemySides}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:enemySides}}]]

Latest revision as of 20:02, 12 June 2023

Hover & click on the images for description

Description

Description:
Returns sides hostile to the given side / object.
Execution:
call
Groups:
Sides

Syntax

Syntax:
input call BIS_fnc_enemySides
Parameters:
input: Object or Side - side or object whose hostile sides should be returned
Return Value:
Array containing all hostile sides of given side or object

Examples

Example 1:
player call BIS_fnc_enemySides;

Additional Information

See also:
side countSide CfgVehicles Config Reference - side Side playerSide west east resistance civilian sideLogic sideFriendly sideEnemy sideUnknown sideEmpty sideAmbientLife Side Relations

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