View Single Post
  #1  
Old 05-17-2008, 07:26 PM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
putleaps function?

PHP Code:
function onActionServerSide(pa,plx,ply) {
  if(
pa == "board") {
    
triggerclient("weapon",this.name,pa,plx,ply);
  }
}

//#CLIENTSIDE
function onTimeout() {
  if(
onwater(player.x,player.y) && this.waterTimer == 0) {
    
triggerserver("weapon",this.name,"board",player.xplayer.y);
  }
  
this.waterTimer += 1;
  if(
this.waterTimer >= 3)this.waterTimer 0;
  
setTimer(0.05);
}

function 
onActionClientSide(pa,plx,ply) {
  if(
pa == "board") {
    
putleaps(5,plx,ply);
  }

The above code doesn't seem to work. It only displays the water splash leap on my screen, not the others screen. Yes, they do have this weapon also. The putleaps() function only works on the Clientside correct? So how would I make it display to the other players (serverside)?

Last edited by Stryke; 05-17-2008 at 07:38 PM..
Reply With Quote