Arma 3 Scripting

Command in Object Manipulation

getSuppression

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

Description

Gets the suppression value for the given unit. Returns varying Number between 0 and 1, or -1 if suppression is disabled (disableAI "SUPPRESSION") 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.

Important

The unit must not be objNull, must be local and alive

Syntax

getSuppression unit

Parameters:

Returns: Number - from 0 to 1, or -1 if suppression is not available.

Examples

Example 1

getSuppression AI_unit_1;

See also

setSuppression · suppressFor · disableAI · enableAI