mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 10:26:28 +03:00
locking vaults
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
private["_obj","_bag","_pos"];
|
||||
hintSilent format["DEBUG: %1",_this];
|
||||
_obj = _this select 3;
|
||||
_obj spawn player_packTent;
|
||||
|
||||
4
dayz_code/actions/vault_lock.sqf
Normal file
4
dayz_code/actions/vault_lock.sqf
Normal file
@@ -0,0 +1,4 @@
|
||||
private["_obj","_bag","_pos"];
|
||||
hintSilent format["DEBUG: %1",_this];
|
||||
_obj = _this select 3;
|
||||
_obj spawn player_unlockVault;
|
||||
@@ -1,3 +1,4 @@
|
||||
private["_obj","_bag","_pos"];
|
||||
hintSilent format["DEBUG: %1",_this];
|
||||
_obj = _this select 3;
|
||||
_obj spawn player_packVault;
|
||||
|
||||
@@ -47,7 +47,7 @@ if (!_isOk) then {
|
||||
|
||||
sleep 5;
|
||||
//place tent (local)
|
||||
_tent = createVehicle ["VaultStorage", _location, [], 0, "CAN_COLLIDE"];
|
||||
_tent = createVehicle ["VaultStorageLocked", _location, [], 0, "CAN_COLLIDE"];
|
||||
_tent setdir _dir;
|
||||
_tent setpos _location;
|
||||
player reveal _tent;
|
||||
@@ -57,7 +57,7 @@ if (!_isOk) then {
|
||||
|
||||
//player setVariable ["tentUpdate",["Land_A_tent",_dir,_location,[dayz_tentWeapons,dayz_tentMagazines,dayz_tentBackpacks]],true];
|
||||
|
||||
dayzPublishObj = [dayz_characterID,_tent,[_dir,_location],"VaultStorage"];
|
||||
dayzPublishObj = [dayz_characterID,_tent,[_dir,_location],"VaultStorageLocked"];
|
||||
publicVariable "dayzPublishObj";
|
||||
if (isServer) then {
|
||||
dayzPublishObj call server_publishObj;
|
||||
|
||||
4
dayz_code/actions/vault_unlock.sqf
Normal file
4
dayz_code/actions/vault_unlock.sqf
Normal file
@@ -0,0 +1,4 @@
|
||||
private["_obj","_bag","_pos"];
|
||||
hintSilent format["DEBUG: %1",_this];
|
||||
_obj = _this select 3;
|
||||
_obj spawn player_unlockVault;
|
||||
Reference in New Issue
Block a user