BIS fnc friendlySides: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Text replacement - "Sides" to "Sides")
Line 12: Line 12:
|p1= toCheck - [[Side]] or [[Object]]: Side or object whose friendly sides should be returned
|p1= toCheck - [[Side]] or [[Object]]: Side or object whose friendly sides should be returned


|r1= [[Array]] of [[Side|Sides]]
|r1= [[Array]] of [[Side]]s


|x1= <sqf>player call BIS_fnc_friendlySides; // -can- return [FRIENDLY,WEST,GUER,CIV]</sqf>
|x1= <sqf>player call BIS_fnc_friendlySides; // -can- return [FRIENDLY,WEST,GUER,CIV]</sqf>

Revision as of 23:39, 12 July 2022

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