I don't know what I'm doing wrong. I have a simple baddie I am developing.
The Image displays, and the initial health displays, but it is not actually functional.
The onWasDmg() does work, but only when I change whole script to CLIENTSIDE....which I don't want to do.
I looked at many baddie examples (like gBaddie v3) and none of that is in CLIENTSIDE.
Why won't mine work
PHP Code:
function onCreated()
{
this.setshape(1, 32, 32);
this.setImg("block.png");
this.health = 500;
this.maxhealth = 500;
setTimer(0.1);
}
function onWasDmg()
{
this.health -= (player.clientr.tempdmg);
}
function onTimeOut()
{
this.chat = this.health @ "/" @ this.maxhealth;
setTimer(0.05);
}