Author Topic: Detecting damage client side?  (Read 833 times)

K, so, I have never stepped foot into the world of clientside. However, I am very interested int eh posibilities of clientside. Is there some kind of way to do
function onPlayerDamage(%player)
{
//Do stuffs...
}
?

I guess the best way would be to check the red screen flash, as there's no way to get your own health client sided, and there are no damage callbacks on the client side.

Could you loop through the serverconnection objects and check setShapeName for your players name then get their damage level?
EDIT: oh you mean a call back. I'm not sure.

K. Nvm, sorry for the bother, my interests have been qenched D:

Could you loop through the serverconnection objects and check setShapeName for your players name
Or go the easy way and just do ServerConnection.getControlOb ject();
then get their damage level?
No matter what, as a client this command will return -1.

It used to work and was removed. Probably to stop people making clientside health bars - Badspot said that he didn't like them/they were distracting at some point.