ACE3/addons/core/functions/fn_isEOD.sqf

27 lines
557 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 ["AGM_isEOD", true]
Parameters:
0: OBJECT - Unit to check if is a specialist
Returns:
BOOLEAN
Example:
2015-01-11 18:20:14 +00:00
_isSpecialist = [player] call FUNC(isEOD);
*/
private "_unit";
_unit = _this select 0;
_unit getVariable ["AGM_isEOD", getNumber (configFile >> "CfgVehicles" >> typeOf _unit >> "canDeactivateMines") == 1]