I’m at work and trying to wrap my head around building this function.
In my project I have some arrays which I manipulate often, for the most part I just add and remove items from them. What I want to implement is a check to remove an element that has been in the array for, lets say, 60s.
I am fairly new to unreal engine and it’s entirely possible there’s a simple node that does this check, but I wasn’t able to find anything suitable from my initial search online.
P.S. As a compromise I am thinking of building a function to remove i.e. 10% of elements from the begining of the array every 5seconds. The end result will be roughly the same, but ideally I’d want to have it set up properly.
Or limit the array to n elements and when a new element needs to be added to a full array, delete n0.