How do you do runtime functions properly?
FOR EXAMPLE:
-I have an table filled with 200 zombies
-they have to find the closest of 200 soldiers
-then they have to move towards the closest soldier
THE QUESTION:
Is it better to have a single runtime function that loops through each of the 200 zombies every frame? Or should each of the zombies have their own runtime functions?
Thanks in advance 