Thread: function...
View Single Post
  #21  
Old 05-22-2007, 10:13 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Deadly_Killer View Post
PHP Code:
//#CLIENTSIDE
function onCreated()

  
this.onTimeout();
}

function 
onTimeout()
{
  
// function onPlayerMoved(newx, newy) { }
  
if (player.!= this.pxy[0] || player.!= this.pxy[1])
  {
    
this.pxy = {player.xplayer.y};
    
    for (
temp.var : weaponstemp.var.trigger("PlayerMoved"player.xplayer.y);
  }
  
setTimer(0.05);

Very poor... make it set a player flag to say that the player is moving, don't send every weapon that the player has an event saying that the player has moved. Why would you even need that?
__________________
Reply With Quote