Lock/unlock vehicle optimizations part 2

This commit is contained in:
vbawol
2013-06-20 08:39:00 -05:00
parent 8114ea669d
commit 888ba11add

View File

@@ -2,6 +2,10 @@ private ["_vehicle","_status"];
_vehicle = _this select 0;
_status = _this select 1;
//if (local _vehicle) then {
_vehicle lock _status;
//};
if (local _vehicle) then {
if(_status) then {
_vehicle setVehicleLock "LOCKED";
} else {
_vehicle setVehicleLock "UNLOCKED";
};
};