Spawning one actor again destroys old actor help
G.A.S.P.Industries
Member, PRO Posts: 25
Hello,
I have a button that when pressed it spawns an Actor(lets call it Actor1) at the position of Actor2. Actor1 has a timer to destroy after 10 seconds. However, I am trying to make it so that if the button is pressed again within that 10 seconds, Actor1 who is on the scene is destroyed immediately and a new one is spawned at Actor2's position.
I have tried to use a boolean attribute but i haven't been able to get it to work.
I have also realized I can do a move to action instead of spawn destroy but the actor being destroyed has many attributes in it itself which i would have to keep restarting if I just did a move to.
Any ideas?
Thanks for your help, if I am not being clear please let me know. I look forward to any assistance!
I have a button that when pressed it spawns an Actor(lets call it Actor1) at the position of Actor2. Actor1 has a timer to destroy after 10 seconds. However, I am trying to make it so that if the button is pressed again within that 10 seconds, Actor1 who is on the scene is destroyed immediately and a new one is spawned at Actor2's position.
I have tried to use a boolean attribute but i haven't been able to get it to work.
I have also realized I can do a move to action instead of spawn destroy but the actor being destroyed has many attributes in it itself which i would have to keep restarting if I just did a move to.
Any ideas?
Thanks for your help, if I am not being clear please let me know. I look forward to any assistance!
Comments
let me know if you get it to work. ">