mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Lock/unlock vehicle optimizations part 2
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user