Networking 4.10, Child AActor still in server when client leaves.

When client enters, it spawns a weapon. When Client leaves the weapon stays floating in air. I checked the weapon on the server and client and shows it has an owner. I dont know how to get rid of this weapon. The client leaves by closing the application. Any help??

I tried doing something bootleg where on the weapon tick function it will check if it has an owner, and if it doesnt, kill yourself, but that didnt work.

You should destroy the inventory when the player leaves, usually by overriding the destroy function in the Pawn class.

I am using a Character class and there is no virtual destroy function to override. Am i missing something??

I have fixed it. You are correct TheJamsh, its called Destroyed(). Override that in your character class with your clean up! THANKS!