ID:175548
 
How would i make a code where you press Scan then it tells you the HP/MAXHP of all the playes in your view?

EDIT: NVM I FIGURED IT OUT :)
Koolguy900095 wrote:
How would i make a code where you press Scan then it tells you the HP/MAXHP of all the playes in your view?

mob/player/verb/Scan()
{
var/mob/player/M
for(M as mob in oview())
if(istype(M))
src << "[M] has [M.HP]/[M.MaxHP] HP"
}