[bug] DoOnce passes continuously?
Currently creating a spawn actor to happen from an event in the character upon death.
But for some reason the DoOnce is continuously passing the execute to the spawn actor until the actor is completely destroyed as if the DoOnce was not even there.
Heres the blueprint
asked Jun 02 '14 at 08:27 PM in Bug Reports
I was testing DoOnce in the EventGraph of my test blueprint earlier, but now i can see that you are using it in a Function that gets called several times.
Each time you call your function, its making a new instance of that function, not calling the same one over and over again. So it's not really an issue of one DoOnce executing several times, but instead there are several DoOnce's executing once.
Just to make sure, here is my test. I made a blueprint called "S", and a function called "NewFunction". I call NewFunction once on BeginPlay. Then inside NewFunction, I loop the DoOnce node. The PrintString only printed once!
To fix your issue, what you want to do is reorganize the flow of your blueprints so that the function only gets called once.
Hope this helps!
answered Jun 03 '14 at 02:19 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here