/* * Author: marc_book, edited by commy2 * Checks if a unit is an engineer. * * Arguments: * 0: unit to be checked * * Return Value: * is the unit an engineer * * Public: Yes */ #include "script_component.hpp" params ["_unit"]; _unit getVariable ["ACE_isEngineer", getNumber (configFile >> "CfgVehicles" >> typeOf _unit >> "engineer") == 1]