Hi,
I'm using the OnLootEntity to detect when the player start looting an entity and all works fine but the OnLootEntityEnd don't seem to be working to the backpack(DroppedItemContainer) and sleeper(BasePlayer). I'm i casting to the wrong classes or is something else?
OnLootEntityEnd not working as expected
Discussion in 'Rust Development' started by micaelr95, Mar 3, 2018.
-
Wulf Community Admin
Could you provide your exact usage with the code please?
-
-
Wulf Community Admin
OnLootEntityEnd only covers LootableCorpse and StorageContainer, so it may not work with DroppedItemContainer.
-
So how can i detect when the player closes the inventory while in DroppedItemContainer and BasePlayer. I tried to use the built in methods in those classes but without success.
-
Wulf Community Admin
-
I will mess around a little more and try to find a work around.
Thanks