BPI event fires forever creating an infinite loop.

I’ve made a video of the issue

Basically, I’ve created a BPI to run my health events and then update my UI Health Bar. My gain health BPI Event works perfectly.

My take damage BPI Event fires forever and causes the sim to end because an infinite loop is detected. I can not figure out what is causing this. I’ve never had this problem before when I’ve used BPI’s

Let me know your thoughts
Thanks

You might be calling the local implementation of the interface, instead of the actor’s function? Rename the (blue) function to avoid confusion - either your own or the editor’s.

Could this be it? If that’s not it, then the editor is drunk.


Alternatively, add a return value to the interface functions. The actors can then implement them directly without the need to create additional functions. And you get free local variables as a bonus, too; and no graph clutter.

1 Like

I Do think the editor was also drunk, but I renamed the BPI to PlayerTakeDamage, compiled then it said it couldn’t find a function named “Take Damage” so I deleted the function and readded it and connected the pieces and it worked…

The same naming may have been the problem as my gain health function has a different BPI name the whole time.

I’ve done this health component (as a tutorial) 5 times and all 5 I’ve had strange things happen that I can’t understand:rofl: