Hello,
Having an issue with the Backpacks plugin. I added an extra level of backpack which is the size of the new coffin storage, this all works perfectly fine, however upon dieing the last row of items are missing, I think this is because the backpack prefab on Rust is only 6 rows so the 7th row of the coffin storage is not being added.
So I tried to modify the backpack plugin so that instead of dropping a backpack it would drop a coffin with the items in instead. However I am getting this error:
Failed to call hook 'OnEntityDeath' on plugin 'Backpacks v2.1.8' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Backpacks+Backpack.Drop (UnityEngine.Vector3 position) [0x0003a] in :0
at Oxide.Plugins.Backpacks.OnEntityDeath (BaseCombatEntity victim, HitInfo info) [0x0005a] in :0
at Oxide.Plugins.Backpacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00282] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
Hopefully someone can help as I have no idea what this means and I am not 100% sure what I am doing. Maybe it's possible to
make the dropped backpack storage larger and solve my problem even easier?
Thanks VERY MUCH for the help in advance,
Giggs