ACE3/addons/common/functions/fnc_isEOD.sqf
2015-05-14 17:12:40 -05:00

26 lines
551 B
Plaintext

/*
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:
isSpecialist = [player] call FUNC(isEOD);
*/
#include "script_component.hpp"
PARAMS_1(_unit);
_unit getVariable ["ACE_isEOD", getNumber (configFile >> "CfgVehicles" >> typeOf _unit >> "canDeactivateMines") == 1]