I need a loop, I think in Developer Help
|
|
In my Time crisis game, You have a health hud, how do I get it to update automatically? currently I have it updating when you shoot, but it would really be nice if it did it automatically =)
heres some of the code:
proc/health() for(var/obj/healthbar/H in usr.client.screen) if(usr.HP == 1) H.icon_state = "1" if(usr.HP == 2) H.icon_state = "2" if(usr.HP == 3) H.icon_state = "3" if(usr.HP == 4) H.icon_state = "4" if(usr.HP == 5) H.icon_state = "5" if(usr.HP == 6) H.icon_state = "6" if(usr.HP == 7) H.icon_state = "7" if(usr.HP == 8) H.icon_state = "8" if(usr.HP == 9) H.icon_state = "9" if(usr.HP == 10) H.icon_state = "10" if(usr.HP == 0) H.icon_state = "0"
|
This Is The Proc in need it to loop through, can someone please help me? I tried telling it to run itself at the end of the proc, but it said never ending loops wheren't allowed, please, please, please, please, please, please, please, please, Help me!
|
Ungh.
Lummox JR