ACE3/addons/repair/functions/fnc_isRepairVehicle.sqf

21 lines
456 B
Plaintext
Raw Normal View History

/*
* 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"
2015-08-09 06:54:44 +00:00
params ["_vehicle"];
TRACE_1("params",_vehicle);
if (_vehicle isKindOf "CAManBase") exitwith {false};
2015-08-15 13:49:41 +00:00
((_vehicle getVariable ["ACE_isRepairVehicle", getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(canRepair))]) > 0);