View Single Post
  #8  
Old 01-06-2011, 01:09 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
So why does this NOT work?

PHP Code:
//#CLIENTSIDE
function onMouseDown() {
  
this.angle = random(0,360); // angle
  
this.distance = random(5,7); // distance
  
this.nx = x + sin(this.angle) * this.distance;
  
this.ny = y + cos(this.angle) * this.distance;
  
with ( findImg( 4000)) {  
    
polygon = {
      
this.nx, this.ny,
      
this.nx-(2/16), this.ny-(2/16),
      
x-(2/16),y-(2/16),
      
x, y
    
};
    
layer = 3;
  }
  
chat = this.nx SPC this.ny;
} 
The NPC chats the correct cords but does not move to draw poly properly..
Reply With Quote