mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e8693c8db9
* configOf * replace some use of CBA_fnc_getObjectConfig
26 lines
563 B
Plaintext
26 lines
563 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Glowbal
|
|
* Check if vehicle is a engineering vehicle.
|
|
*
|
|
* Arguments:
|
|
* 0: Vehicle <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Is engineering vehicle <BOOL>
|
|
*
|
|
* Example:
|
|
* [vehicle] call ace_repair_fnc_isRepairVehicle
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params ["_vehicle"];
|
|
TRACE_1("params",_vehicle);
|
|
|
|
if (_vehicle isKindOf "CAManBase") exitWith {false};
|
|
|
|
// Value can be integer or boolean
|
|
private _value = _vehicle getVariable ["ACE_isRepairVehicle", getNumber (configOf _vehicle >> QGVAR(canRepair))];
|
|
_value in [1, true] // return
|