if(locate(M.Mmeter) in M.overlays) M.Mmeter.Update()
But that didn't work.
ID:270400
Apr 18 2006, 2:36 pm
|
|
I'm using Shadowdarkes HPmeter library, and I have a mini HP meter added to the overlays of the monster so players can see the HP. Howvever, I cna't figure out how to update it when it's overlayed. I've tried:
if(locate(M.Mmeter) in M.overlays) M.Mmeter.Update() But that didn't work. |
Apr 19 2006, 8:49 am
|
|
Can I have some help please? Would there be a better way to go about this?
|
In response to Pyro_dragons
|
|
I'd set the hudmeter overlay to a var, like mob/var/obj/hudmeter , and then you can directly acces mob.hudmeter variable.
|
In response to Mysame
|
|
Exactly. You cannot read from the overlays list. You can only write to it, which may pretty stupid. You should be able to do both, but you can't, and there is porbably a good reason behind this.
|
In response to CaptFalcon33035
|
|
Ok, but could I see an example? I learn better from visual aid than explainations. I think I get what you mean, but I'd like to see anyway. I'm really off this week lol. I've been making a lot of stupid mistakes...
|