What would be a proper way to achieve this? There are guides around but they do not work on multiplayer.
I have set up this “floating damage text”, and it works. However I am worried because everytime a player does a damage, my code will iterate (GetActorsOfClass …) through all “players” (not actors, only active players) and if the player is near the damaged actor, it will create a widget on the controller showing the floating text above the Actor that was damaged. However I believe this would be quite cpu intensive or something, since if the game has 300 users on the map, it will execute that function, itterating over all those players all the time…
Is there a proper way to get nearby actors from another actor, without the need of iterating through all active players?
Or maybe a better way to achieve this?