ACE3/addons/common/functions/fnc_isEOD.sqf

26 lines
551 B
Plaintext
Raw Normal View History

/*
2015-01-11 18:20:14 +00:00
Name: FUNC(isEOD)
Author: Garth de Wet (LH)
Description:
Checks whether the passed unit is an explosive specialist.
Either through config entry: "canDeactivateMines"
or
unit setVariable ["ACE_isEOD", true]
Parameters:
0: OBJECT - Unit to check if is a specialist
Returns:
BOOLEAN
Example:
2015-05-14 22:12:40 +00:00
isSpecialist = [player] call FUNC(isEOD);
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-05-14 18:06:06 +00:00
PARAMS_1(_unit);
_unit getVariable ["ACE_isEOD", getNumber (configFile >> "CfgVehicles" >> typeOf _unit >> "canDeactivateMines") == 1]