BIS fnc threat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>
| Calculates threat values of given unit. |= Description
/*
____________________________________________________________________________________________
File: fn_threat.sqf


Description:
| [unit] call [[BIS_fnc_threat]] |= Syntax
Calculates threat values of given unit
____________________________________________________________________________________________
 
Parameter(s):
_this: Given unit


Returns:
|p1= unit: [[Object]] - Given unit|= Parameter 1
Number: Threat level in range from 0 to 3
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_threat]]; --> |= Syntax
| [[Number]] - Threat level in range from 0 to 3|= Return value
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>_threatLevel = [ [[player]] ] [[call]] [[BIS_fnc_threat]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[nearTargets]], [[targetsQuery]], [[reveal]], [[side]] |= See also
}}


}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>

Revision as of 16:39, 29 May 2018

Hover & click on the images for description

Description

Description:
Calculates threat values of given unit.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[unit] call BIS_fnc_threat
Parameters:
unit: Object - Given unit
Return Value:
Number - Threat level in range from 0 to 3

Examples

Example 1:
_threatLevel = [ player ] call BIS_fnc_threat;

Additional Information

See also:
nearTargetstargetsQueryrevealside

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


Notes

Bottom Section