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