ACE3/addons/common/functions/fnc_isEngineer.sqf

17 lines
354 B
Plaintext
Raw Normal View History

/*
* 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?
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-05-14 18:06:06 +00:00
PARAMS_1(_unit);
_unit getVariable ["ACE_IsEngineer", getNumber (configFile >> "CfgVehicles" >> typeOf _unit >> "engineer") == 1]