---
name: "BIS_fnc_threat"
type: function
status: ok
groups: ["Combat"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_threat
revid: 349272
updated: 2023-11-08T14:51:10Z
---

# BIS_fnc_threat

*Function · Combat · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Calculates threat values of given unit.

## Syntax

```sqf
[unit] call BIS_fnc_threat
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - given unit

**Returns:** [Number](../topics/Number.md) - threat level in range from 0 to 3

## Examples

### Example 1

```sqf
private _threatLevel = [player] call BIS_fnc_threat;
```

## See also

[nearTargets](../commands/nearTargets.md) · [targetsQuery](../commands/targetsQuery.md) · [reveal](../commands/reveal.md) · [side](../commands/side.md)

<sub>Source: [BI Community Wiki — BIS fnc threat](https://community.bistudio.com/wiki/BIS_fnc_threat) (revision 349272).</sub>
