{"name":"BIS_fnc_threat","operator":null,"title":"BIS fnc threat","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_threat","revid":349272,"updated":"2023-11-08T14:51:10Z","groups":["Combat"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Calculates threat values of given unit.","syntaxes":[{"syntax":"[unit] call BIS_fnc_threat","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"given unit","types":["Object"],"since":null,"text":"unit: Object - given unit"}],"returns":{"type":"Number","types":["Number"],"description":"threat level in range from 0 to 3","text":"Number - threat level in range from 0 to 3"}}],"examples":[{"text":"```sqf\nprivate _threatLevel = [player] call BIS_fnc_threat;\n```","code":["private _threatLevel = [player] call BIS_fnc_threat;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["nearTargets","targetsQuery","reveal","side"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Combat","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}