mob
icon = 'Player.dmi'
icon_state = "player"
var
HP = 100
MAXHP = 100
ov=new/obj/hud/overlay/
hp=new/obj/hud/HP/
verb
overlay()
usr.overlays+=ov
usr.overlays+=hp
What you see above is what I shamefully spent hours of google searches to get working...(the pain...)
Problem description: At the moment I am trying to make a proc to update the hp overlay to match the mob's current HP. I hate being stupid but I'm not sure where to start on this one...
Any and all help is appreciated.
Think of vis_contents like an overlays list that doesn't suck as much.