Arma 3 Scripting

BIS_fnc_sideIsFriendly

  • Arma 3 v1.56

Function · Markdown · JSON · original wiki page

Description

Determines if side B is friendly to side A the way the game engine does it. The relationship table can be found here: Side Relations.

Syntax

[sideA, sideB] call BIS_fnc_sideIsFriendly

Parameters:

Returns: Boolean - true if side B is friendly to side A.

Examples

Example 1

private _isFriendly = [west, east] call BIS_fnc_sideIsFriendly; //Checks if EAST is friendly to WEST.

See also

getFriend · setFriend · BIS_fnc_sideIsEnemy · Side Relations