View Single Post
  #3  
Old 05-17-2008, 07:37 PM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
It's just an example, the actual code is in a onTimeout().
My mistake. I'll edit that in first post.

PHP Code:
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);

Reply With Quote