mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +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];
|
||||
};
|
||||
|
||||
//remove (partially) full crate
|
||||
player removeMagazine _item;
|
||||
_dir = getDir player;
|
||||
_classname = "WeaponHolder";
|
||||
|
||||
//return empty crate to inventory
|
||||
player addMagazine "bulk_emtpy";
|
||||
|
||||
// Change to optional wait to complete
|
||||
player playActionNow "Medic";
|
||||
sleep 6;
|
||||
|
||||
Reference in New Issue
Block a user