mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
565 B
Plaintext
27 lines
565 B
Plaintext
/*
|
|
Name: GVAR(fnc_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:
|
|
_isSpecialist = [player] call GVAR(fnc_isEOD);
|
|
*/
|
|
|
|
private "_unit";
|
|
|
|
_unit = _this select 0;
|
|
|
|
_unit getVariable ["AGM_isEOD", getNumber (configFile >> "CfgVehicles" >> typeOf _unit >> "canDeactivateMines") == 1]
|