mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
(repair) - isRepairVehicle handling values according to wiki (#6278)
* handle boolean and integer * check if value is 1 or true
This commit is contained in:
parent
fbacf1a3e4
commit
265bc62259
@ -20,4 +20,6 @@ TRACE_1("params",_vehicle);
|
||||
|
||||
if (_vehicle isKindOf "CAManBase") exitWith {false};
|
||||
|
||||
((_vehicle getVariable ["ACE_isRepairVehicle", getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(canRepair))]) > 0);
|
||||
// Value can be integer or boolean
|
||||
private _value = _vehicle getVariable ["ACE_isRepairVehicle", getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(canRepair))];
|
||||
_value in [1, true] // return
|
||||
|
Loading…
Reference in New Issue
Block a user