mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Merge pull request #670 from dayz10k/master
#667 Return an empty crate to user when unpacking bulk
This commit is contained in:
@@ -27,10 +27,14 @@ if ((_location select 2) < 0) then {
|
|||||||
_location set [2,0];
|
_location set [2,0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//remove (partially) full crate
|
||||||
player removeMagazine _item;
|
player removeMagazine _item;
|
||||||
_dir = getDir player;
|
_dir = getDir player;
|
||||||
_classname = "WeaponHolder";
|
_classname = "WeaponHolder";
|
||||||
|
|
||||||
|
//return empty crate to inventory
|
||||||
|
player addMagazine "bulk_emtpy";
|
||||||
|
|
||||||
// Change to optional wait to complete
|
// Change to optional wait to complete
|
||||||
player playActionNow "Medic";
|
player playActionNow "Medic";
|
||||||
sleep 6;
|
sleep 6;
|
||||||
|
|||||||
Reference in New Issue
Block a user