[REQUEST] New 'Wait For New Tick' Blueprint Node

Here is how I get the array of actors in range of the character. It is much faster than calling get actors in range every tick. Instead you already have the array of actors in range. Then the only time the array changes is if one of the characters is destroyed, or end’s overlap. The overlap sphere is a spherecomponent I have added to the components.

The first part of the sequence is setting up the actors that are in range when the character first spawns. For some reason I am not sure why that part wasn’t needed when I first created it. Instead the characters that were overlapping would get the overlap function at the start. Not sure why it changed as I didn’t change anything. I might change the order so it adds the characters in range last, and clears the array before that just to make sure it works as intended.

Then in the tick event I can access that array and if needed and loop through it. removes the need to call get all actors in range every frame which is much slower.

That is in my parent character blueprint. Then I can post what I do in the parent character tick event also, but if you post what you are doing in your blueprint I can explain it so it works for yours also.

1 Like