Save structure data in child actor

All my idea is: pick up weapon, shooting with it, and when drop it with saving data about remaining ammo in it. I have tried do this with cast to master item and structure in master item but i do something wrong, and i don’t know what it is. All weapon is child actor from master item, and structure is variable in master item. Here is my BP of dropping weapon.
P.S. Sorry for my bad english.

This is almost correct. The problem is that you are doing GetClass on current weapon and then spawning an actor from it. Spawning an actor from a class will have all of its properties set to default.

Instead of setting Item Data on the Current Weapon and then spawning a new Weapon actor, you should spawn a weapon actor first, and then set the Item Data on the new weapon actor that was spawned.

I tried do this 3 days and finally it’s works !!! Thanks you very much!!))

No problem :slight_smile: Could you mark the answer as accepted so that it doesn’t show up as unanswered in my history? Thanks!