getSuppression: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Text replacement - "v1\.91\.[0-9]{6}" to "v1.92")
Line 7: Line 7:
|gr1= Object Manipulation
|gr1= Object Manipulation


| Gets the suppression value for the given unit. Returns varying [[Number]] between 0 and 1, or -1 if suppression is disabled (<tt>[[disableAI]] "SUPPRESSION"</tt>) or the suppression value is not available. Suppression is not calculated for player entities and is always 0, unless it is set with [[setSuppression]]. In this case the return value is the set value. Before Arma 3 v1.91.145360 this command could return [[nil]].<br><br>   
| Gets the suppression value for the given unit. Returns varying [[Number]] between 0 and 1, or -1 if suppression is disabled (<tt>[[disableAI]] "SUPPRESSION"</tt>) or the suppression value is not available. Suppression is not calculated for player entities and is always 0, unless it is set with [[setSuppression]]. In this case the return value is the set value. Before Arma 3 v1.92 this command could return [[nil]].<br><br>   
{{Feature | important | The unit must not be [[objNull]], must be [[local]] and [[alive]]}}
{{Feature | important | The unit must not be [[objNull]], must be [[local]] and [[alive]]}}



Revision as of 10:20, 3 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object
Return Value:
Return value needed

Examples

Example 1:
getSuppression AI_unit_1;

Additional Information

See also:
setSuppressionsuppressFordisableAIenableAI

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