Arma 3 Scripting

Function in Sides

BIS_fnc_sideIsEnemy

Also available as Markdown and JSON, or read the original wiki page.

Description

Determines if side B is enemy 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_sideIsEnemy

Parameters:

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

Examples

Example 1

private _isEnemy = [west, east] call BIS_fnc_sideIsEnemy; //Checks if EAST is enemy to WEST.

See also

getFriend · setFriend · BIS_fnc_sideIsFriendly · Side Relations