ID:2366624
 
Code:
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.


use vis_contents instead of overlays for things you want to update all the time. It's a new feature that gets rid of the stupid bullshit you had to do to update an overlay.

Think of vis_contents like an overlays list that doesn't suck as much.
In response to Ter13
Ter13 wrote:
use vis_contents instead of overlays for things you want to update all the time. It's a new feature that gets rid of the stupid bullshit you had to do to update an overlay.

Think of vis_contents like an overlays list that doesn't suck as much.

I'll have to look into that in the morning. Thanks for the info