Imo:
- Create another actor that spawns when something overlaps. This new actor can store the timer and destroy itself when applies the material or…
- 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.