Hello everyone,
I have a little problem of optimisation here.
I’m making a shoot 'em up
In a level I have enemy spawning every now and then
I want the player to teleport to enemy position when I press a key
Actually I’m using “Get all actor with tag”, however it’s written in the BP comment, that is a slow operation (and it is…) and that I can’t use it everyframe.
–>So I’m using this BP only when a new enemy is concerned by the teleport (so I will not cast multiple get all actor with tag for nothing).
However, it’s still very slow and demand many ressources…
Maybe someone know another solution, less demanding on ressources, in order to get all “enemy” actor in a level please ?
Thanks a lot !