Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.