Thread: Baddie issue
View Single Post
  #1  
Old 05-23-2012, 11:59 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
Baddie issue

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(13232);
 
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);
 } 
Reply With Quote