ACE3/addons/repair/functions/fnc_isRepairVehicle.sqf
Glowbal 071a673f28 Implemented repair action framework
copied across treatment framework from medical and adjusted it to suit the repair actions
2015-07-03 23:14:23 +02: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"
private ["_vehicle"];
_vehicle = _this select 0;
if (_vehicle isKindOf "CAManBase") exitwith {false};
((_vehicle getVariable [QGVAR(engineerClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "engineer")]) > 0);