mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
20
SQF/dayz_code/actions/unlock_veh.sqf
Normal file
20
SQF/dayz_code/actions/unlock_veh.sqf
Normal file
@@ -0,0 +1,20 @@
|
||||
private["_vehicle"];
|
||||
_vehicle = _this select 3;
|
||||
|
||||
if(TradeInprogress) exitWith { cutText ["Lock vehicle already in progress." , "PLAIN DOWN"]; };
|
||||
TradeInprogress = true;
|
||||
|
||||
{player removeAction _x} forEach s_player_lockunlock;s_player_lockunlock = [];
|
||||
s_player_lockUnlock_crtl = 1;
|
||||
|
||||
dayzLockVehicle = [_vehicle,false];
|
||||
if(player distance _vehicle < 10) then {
|
||||
if (local _vehicle) then {
|
||||
dayzLockVehicle spawn local_lockUnlock
|
||||
} else {
|
||||
publicVariable "dayzLockVehicle";
|
||||
};
|
||||
};
|
||||
|
||||
s_player_lockUnlock_crtl = -1;
|
||||
TradeInprogress = false;
|
||||
Reference in New Issue
Block a user