ACE3/addons/repair/functions/fnc_isRepairVehicle.sqf
2015-08-09 01:54:44 -05:00

21 lines
449 B
Plaintext

/*
* Author: Glowbal
* Check if vehicle is a engineeral vehicle
*
* Arguments:
* 0: The Vehicle <OBJECT>
*
* ReturnValue:
* Is in of engineer class <BOOL>
*
* Public: Yes
*/
#include "script_component.hpp"
params ["_vehicle"];
TRACE_1("params",_vehicle);
if (_vehicle isKindOf "CAManBase") exitwith {false};
((_vehicle getVariable [QGVAR(engineerClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "engineer")]) > 0);