Unable to make character look at an item: Infinite Loop error

Hello.

I’m trying to do this one:
Player clicks on the item → Character slowly rotates to specified rotator.

But got an error:
“Error Infinite Loop detected in VNE1PrisonEscape , asserted during CustomEvent_0 with the following Call Stack”

I already checked the case when the ‘branch false’ is not connected - after several clicks on item (~15) it becomes True.
So why it shows Infinite Loop error if I connect False to Set Control Rotation? After some time it must become True…

Is there any other way to do this?

Thank you.

Do not use Event Tick like this. Shift your GetAllActorsOfClass node and Bind node to Event BeginPlay.

In that case nothing happens when I click on the item:
“Error Accessed None ‘CallFunc_Array_Get_Item’ from node Bind Event to Hid1anim in graph ‘EventGraph’ in blueprint VNE1PrisonEscape”

I also added delay 3s as workaround, but had the same loop error:
“Error Infinite Loop detected in VNE1PrisonEscape , asserted during CustomEvent_0 with the following Call Stack”

After this I added one more delay (1s) to loop and errors disappeared. But this are just workarounds, right?

As I found - just adding Delay 0.0001s to loop make it possible to run on Event Tick. User will never notice such small delay.

Adding the delay is just a work around yes. More like sweeping the problem under the rug.

You really should consider making your solution more efficient, it may just solve the problem for you.