Spawn weapon after picked up

How I can respawn weapon, after player picked it up?

Hi there, depending on your pickup logic, if you destroy the actor, before destroying, get a reference for the weapon class, call spawn actor from class, get player transform then attach actor to component, setting the mesh as “parent” and naming the socket reference. Finally, destroy the pickup actor.
If you examine the Action RPG template, there is a similar setup in BP_PlayerCharacter:


Hello again! You already tried to help me with another question :slight_smile:
I’ve come to the point that I need to get a new weapon, when it leave from triggerbox (Weapon already exist in triggerbox since start)

Hi there,

You want to create a “backpack” logic, so the weapon already equipped will be hostered, stored, and only then the second weapon is picked up.

I’ll see if I can find a good one.