#How to make an enemy NPC prioritize player with lowest health
1 messages · Page 1 of 1 (latest)
In your loop keep track of the player with lowest health and their actual health
every time you loop through a player check if their health is lower than the current lowest players health and if it is, replace the variable
Hope that makes sense
yeah my problem is I don't know how to do that
im really new with tables so I don't know how to find specific things like that
compare health the same way you compare distance
it's that easy 
or maybe you didn't write that code and it's going to be very hard for you since you didn't write the code 
or i don't know how tables work so thats why i dont know how to use tables 
what steps have you taken already to learn how tables work?
i know the arguments to add/remove things