getFriend: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
||
Line 19: | Line 19: | ||
|descr= Returns if sides are friendly or hostile. For a value smaller than 0.6 it results in being enemy, otherwise it is friendly. See also [[Side relations]]. | |descr= Returns if sides are friendly or hostile. For a value smaller than 0.6 it results in being enemy, otherwise it is friendly. See also [[Side relations]]. | ||
|s1= | |s1= side1 '''getFriend''' side2 | ||
|p1= side1: [[Side]] | |p1= side1: [[Side]] |
Revision as of 22:11, 19 June 2021
Description
- Description:
- Returns if sides are friendly or hostile. For a value smaller than 0.6 it results in being enemy, otherwise it is friendly. See also Side relations.
- Groups:
- Sides
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
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