2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-09-18 19:12:40 +00:00
|
|
|
* Author: Garth de Wet (LH)
|
|
|
|
* Checks whether the passed unit is an explosive specialist.
|
|
|
|
* Either through config entry: "canDeactivateMines"
|
|
|
|
* or
|
|
|
|
* unit setVariable ["ACE_isEOD", true]
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit to check if is a specialist <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* is the unit an EOD <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2019-06-21 16:21:33 +00:00
|
|
|
* [player] call ace_common_fnc_isEOD
|
2015-09-18 19:12:40 +00:00
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-09-18 19:12:40 +00:00
|
|
|
params ["_unit"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2019-06-21 16:21:33 +00:00
|
|
|
(_unit getVariable ["ACE_isEOD", _unit getUnitTrait "explosiveSpecialist"]) in [1, true]
|