ACE3/addons/common/functions/fnc_isEngineer.sqf

18 lines
380 B
Plaintext
Raw Normal View History

/*
* Author: marc_book, edited by commy2
* Checks if a unit is an engineer.
*
* Arguments:
2015-09-18 19:12:40 +00:00
* 0: unit to be checked <OBJECT>
*
* Return Value:
2015-09-18 19:12:40 +00:00
* is the unit an engineer <BOOL>
*
* Public: Yes
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-09-18 19:12:40 +00:00
params ["_unit"];
2015-09-19 20:27:23 +00:00
_unit getVariable ["ACE_isEngineer", getNumber (configFile >> "CfgVehicles" >> typeOf _unit >> "engineer") == 1] // return