Spawned Actor Removal / Replace

Hey Guys,

I have a slight issue which I hope I can get some help with. I want to spawn objects via buttons which I have working. Basically if I click the same button twice that object will spawn twice on top of each other.

I guess I am stuck on the type of if statement I would need to check whether that actor has already been spawned and either leave it or delete.

Appreciate any help.

Thanks

By the looks of it, it looks like you are spawning an actor, but as soon as you are destroying it, which makes it look as it nothing is happening. This script will make the button spawn the actor, and then destroy it on the next click. Hopefully, that is what you want to happen.

That works great!!! appreciate this big time. Thanks