ACE3/addons/repair/functions/fnc_isRepairVehicle.sqf
PabstMirror ab769757d9 Skip Depends Hitpoints - Use HitPoints selPos for wheels
Stuff

Normalize Depends - Skip Glass Repair

Fix spawned wheel/track not having correct damage

getHitpointString robustness, hatchback fuelHitpoint, fix count errors

-

Formatting

local -> private

Fix Stuff
2015-11-20 21:11:50 -06:00

24 lines
517 B
Plaintext

/*
* Author: Glowbal
* Check if vehicle is a engineering vehicle.
*
* Arguments:
* 0: Vehicle <OBJECT>
*
* ReturnValue:
* Is engineering vehicle <BOOL>
*
* Example:
* [vehicle] call ace_repair_fnc_isRepairVehicle
*
* Public: Yes
*/
#include "script_component.hpp"
params ["_vehicle"];
TRACE_1("params",_vehicle);
if (_vehicle isKindOf "CAManBase") exitWith {false};
((_vehicle getVariable ["ACE_isRepairVehicle", getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(canRepair))]) > 0);