mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-20 07:02:56 +03:00
Update player_loadCrate.sqf
#667 Return an empty crate to user when unpacking.
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