Arma 3 Scripting

Command in Sensors

getSensorThreats

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

Description

Returns vehicle sensors' threats.

Syntax

getSensorThreats vehicle

Parameters:

Returns: Array of Arrays - format [[object, type, sensor], ...]:

Examples

Example 1

private _dangers = getSensorThreats vehicle player;
/*
    returns e.g
    [
        [164230: titan_missile_atl_fly.p3d, "missile", ["visual"]],
        [164233: titan_missile_atl_fly.p3d, "threatmissile", ["radar"]]
    ]
*/

See also

getSensorTargets · listVehicleSensors · listRemoteTargets