Hey. I have a random delay before the blueprint starts functioning and I'm not sure why.
Basically, after the damage function is called, it's supposed to set the timer to 10, and then the timer should subtract by 1 every second. Once this is done, health should be added. Everything works, except for the odd delay before the event starts running. Once it starts, everything works perfectly, there's no delay.
So.. Start game > random delay that shouldn't be there > event starts working > no more random delay > loops perfectly. Any ideas on why this happens?
asked Sep 21 '18 at 09:09 AM in Blueprint Scripting
Okay, turns out that "Take damage" should be connected to the branch after Event Tick. I think this is odd that it doesn't check every second even when not connected, but oh well.
answered Sep 21 '18 at 09:17 AM
How is it strange?
Your Take Damage does not work because it's invalid, the cast does not have an object and is not even connected to an execution flow...
Also, using delays in Tick like this is asking for trouble and a nightmare to debug.
Follow this question
Once you sign in you will be able to subscribe for any updates here