getFriend

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Returns if sides are friendly or hostile. For a value smaller than 0.6 it results in being enemy, otherwise it's friendly. See also Side relations.

Syntax

Syntax:
side1 getFriend side2
Parameters:
side1: Side
side2: Side
Return Value:
Number - Decimal value between 0.0 to 1.0

Examples

Example 1:
value = west getFriend east;
Example 2:
_isEnemy = side _killer getFriend side _victim < 0.6;

Additional Information

Multiplayer:
-
See also:
setFriendBIS_fnc_sideIsFriendlyBIS_fnc_sideIsEnemySide relations

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section