ACE3/addons/core/functions/fnc_isEngineer.sqf
2015-01-12 05:14:15 -06:00

19 lines
398 B
Plaintext

/*
* Author: marc_book, edited by commy2
*
* Checks if a unit is an engineer.
*
* Arguments:
* 0: unit to be checked (object)
*
* Return Value:
* Bool: is the unit an engineer?
*/
#include "\z\ace\addons\core\script_component.hpp"
private "_unit";
_unit = _this select 0;
_unit getVariable ["ACE_IsEngineer", getNumber (configFile >> "CfgVehicles" >> typeOf _unit >> "engineer") == 1]