BIS fnc friendlySides: Difference between revisions
Jump to navigation
Jump to search
m (see also) |
m (template:command argument fix) |
||
Line 9: | Line 9: | ||
| Returns sides allied to the given side / object. |= | | Returns sides allied to the given side / object. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| toCheck call [[BIS_fnc_sortAlphabetically]] |= | | toCheck call [[BIS_fnc_sortAlphabetically]] |SYNTAX= | ||
|p1= toCheck - [[Side]] or [[Object]]: Side or object whose friendly sides should be returned |= Parameter 1 | |p1= toCheck - [[Side]] or [[Object]]: Side or object whose friendly sides should be returned |= Parameter 1 | ||
| [[Array]] of [[Side|Sides]] |= | | [[Array]] of [[Side|Sides]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 22: | Line 22: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[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]] |= | | [[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]] |SEEALSO= | ||
}} | }} |
Revision as of 11:28, 7 April 2019
Description
- Description:
- Returns sides allied to the given side / object.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- toCheck call BIS_fnc_sortAlphabetically
- 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 valueSideplayerSidewesteastresistanceciviliansideLogicsideFriendlysideEnemysideUnknownsideEmptysideAmbientLifeSide relationsBIS_fnc_sideIDBIS_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