How can I spawn and remove an actor?

Hello! I want to spawn an Actor when I press a key once and when I press a second time to spawn another Actor the first actor will destroy. How could I do that?

I tried something but it didn’t work…

1 Like

BTW, this already does the trick

so you don’t need to re-assign :wink:

Sorry, not quite clear. On keypress 2, you still want to spawn, but kill the last one?

1 Like

Yess

1 Like

1 Like

Soo cloose!! It worked once, then they stopped deleting :))

Ah, sorry, I found the problem. It works!! You are a genius.
Thank you so much man!!
Have a nice day!

:slight_smile:

spawn

2 Likes