Fixed wrong EPOCH_InteractedItem on crates

This has no effect to Epoch, but if you are working with EPOCH_InteractedItem in custom scripts, the crate items are from the wrong wh (if a crate and a groundWH is in target.
This commit is contained in:
He-Man 2017-08-13 20:43:33 +02:00 committed by GitHub
parent 9764cb9f43
commit 8185d0dbf5

View File

@ -46,8 +46,8 @@ if (_data == "") then {
_container = switch (_idc) do {
case 633: { uniformContainer player };
case 638: { vestContainer player };
case 632: { EPOCH_targetContainer };
case 640: { EPOCH_secondaryContainer };
case 632: { if (isnull EPOCH_secondaryContainer) then {EPOCH_targetContainer} else {EPOCH_secondaryContainer} };
case 640: { EPOCH_targetContainer };
default { backpackContainer player };
};
_weaponsAndItems = ((getWeaponCargo _container) select 0);