I want to store list of actors that overlap with certain actor on the server in an array and send it to the client.
Since each tick there could be different actors overlapping it you’d want to clear the array of previous values.
So the question is how does the overlap trigger and tick timing synchronise. Is OnComponentBeginOveralp triggered before the tick function or after it , or does it occur independent of it?
If there is no correlation between the timings of the two I’d go for a double buffer swapping method, swapping two arrays each tick adding overlapping actor to one and emptying the other