2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-09-04 09:25:03 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Checks if a unit is currently considered safe enough to treat itself.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2020-01-29 01:12:38 +00:00
|
|
|
* Unit <OBJECT>
|
2016-09-04 09:25:03 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Is unit safe enough <BOOL>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* call ACE_medical_ai_fnc_isSafe
|
|
|
|
*
|
2016-09-04 09:25:03 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2023-06-23 21:59:11 +00:00
|
|
|
(CBA_missionTime - (_this getVariable [QGVAR(lastFired), -999999]) > GVAR(timeSafe_shoot))
|
2020-10-29 16:38:24 +00:00
|
|
|
&& {CBA_missionTime - (_this getVariable [QGVAR(lastHit), -999999]) > GVAR(timeSafe_hit)}
|
2023-06-23 21:59:11 +00:00
|
|
|
&& {CBA_missionTime - (_this getVariable [QGVAR(lastSuppressed), -999999]) > GVAR(timeSafe_suppressed)}
|
2020-01-29 01:12:38 +00:00
|
|
|
&& {!(_this getVariable [QEGVAR(captives,isHandcuffed), false])}
|