ACE3/addons/common/functions/fnc_isEngineer.sqf
2015-09-19 22:27:23 +02:00

18 lines
380 B
Plaintext

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