ACE3/addons/common/functions/fnc_isEOD.sqf

24 lines
525 B
Plaintext
Raw Normal View History

/*
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:
* isSpecialist = [player] call FUNC(isEOD);
*
* Public: Yes
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-09-18 19:12:40 +00:00
params ["_unit"];
_unit getVariable ["ACE_isEOD", _unit getUnitTrait "explosiveSpecialist"] // return