BIS fnc friendlySides: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "Side relations" to "Side Relations")
 
(50 intermediate revisions by 3 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 allied to the given side / object.
____________________________________________________________________________________________


| <pre>/*
|s1= toCheck call [[BIS_fnc_friendlySides]]


Description:
|p1= toCheck - [[Side]] or [[Object]]: Side or object whose friendly sides should be returned
Returns sides allied to the given side / object


Parameter(s):
|r1= [[Array]] of [[Side]]s
0: SIDE or OBJECT


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


|seealso= [[CfgVehicles_Config_Reference#side|CfgVehicles config side value]] [[Side]] [[playerSide]] [[west]] [[east]] [[resistance]] [[civilian]] [[sideLogic]] [[sideFriendly]] [[sideEnemy]] [[sideUnknown]] [[sideEmpty]] [[sideAmbientLife]] [[Side Relations]] [[BIS_fnc_sideID]] [[BIS_fnc_objectSide]]
}}
}}
<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:friendlySides}}]]
[[Category:Functions|{{uc:friendlySides}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:friendlySides}}]]

Latest revision as of 20:02, 12 June 2023

Hover & click on the images for description

Description

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

Syntax

Syntax:
toCheck call BIS_fnc_friendlySides
Parameters:
toCheck - Side or Object: Side or object whose friendly sides should be returned
Return Value:
Array of Sides

Examples

Example 1:
player call BIS_fnc_friendlySides; // -can- return [FRIENDLY,WEST,GUER,CIV]

Additional Information

See also:
CfgVehicles config side value Side playerSide west east resistance civilian sideLogic sideFriendly sideEnemy sideUnknown sideEmpty sideAmbientLife Side Relations BIS_fnc_sideID BIS_fnc_objectSide

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