Quick question, I have a selection of buttons on a menu and I have assigned spawned actors to them. At the moment when you press a button an object is spawned. If you press it again its destroyed and if you press another button another object is spawned and the previous destroyed. This all works fine.
The issue I have is when you press a button its actor is spawned, if you then go on to another and return to a button or the same button twice it needs to be pressed twice ( I am guessing it continues where it left off with the flip flop)
Any help or advice would be really appreciated.
asked Jan 03 '17 at 02:11 PM in Blueprint Scripting
If I understand what you're trying to do...
You need a second set of flipflops and a callback.
Rereading your question, this may not be what you were asking about.
You want to Spawn on the first use of a button...
Despawn that and spawn another - on each subsequent use of the same (or other) buttons?
If that is the goal, you don't actually need a flipflop.
You can just validate the last spawned actor ...
If it exists, destroy it.
And whether it exists or not, spawn the next one.
Follow this question
Once you sign in you will be able to subscribe for any updates here