Running code gets canceled after getting triggered multiple times

Imo:

  1. Create another actor that spawns when something overlaps. This new actor can store the timer and destroy itself when applies the material or…
  2. Add overlapping actors to an array with the game time it overlapped. Loop every second or so if array is not empty, when game time > added time + 5 apply material and remove from array.
2 Likes