For Each Loop followed by Set Timer by Event have strange behaviour

Draavec
Thu, 07 Dec 2023 07:00:56 +0000
Programming & Scripting

Hi All,
I am quite new in Unreal but so far I was able to find solutions for my struggles. Unfortunately atm I am stuck. I am trying to run for each loop filled with elements from Multi Sphere Trace For Objects and for each hit I want to set a timer and do some dmg to actor which was hit (like damage over time). But it seems it will just pick one actor (first one?) and do dmg but for rest it does nothing. To make sure there is not error somewhere else I tried to do dmg to the same array without using timer (immediate one time dmg) and it works fine (all actors get dmg) which led me to believe that either I am using timer incorrectly or there is something “wrong” when combining those two nodes. Can you please help?

7 posts - 3 participants