Author Topic: A way to check client's player's health, client-sidedly  (Read 690 times)

I'm making a big re-configuration to blockland, somewhat SAO themed, and I need a way to see the value of my client's player's health, client-sidedly. I don't mean to change it anything I just want to make a client-side healthbar.

I don't believe you can.

Hey, maybe I can help you out with your re-configuration. If you are interested in a partner, message me.

There is a client sided function called when your screen goes red based how much you were damged. You could get your damage based on the red flash and subtract it from the datablock's health. I just don't know what the client sided function is called.



There is a client sided function called when your screen goes red based how much you were damged. You could get your damage based on the red flash and subtract it from the datablock's health. I just don't know what the client sided function is called.
The problem is that the server doesn't tell the client how much health the datablock has.

EDIT:
setdamageflash?
I think that may be it.
That would be a very inaccurate way of checking how much the player was damaged as there are other ways of triggering setDamageFlash than just being damaged--like through events, if I recall correctly.
« Last Edit: January 13, 2013, 01:32:32 AM by Daenth »

The problem is, the server doesn't tell the client how much health the datablock has.
Datablocks are stored on the client.

Datablocks are stored on the client.
How would a client check to see which datablock its using?

How would a client check to see which datablock its using?

serverConnection.getControlObject().getDataBlock().