View Single Post
  #9  
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 sin(this.angle) * this.distance;
  
this.ny cos(this.angle) * this.distance;
  
with findImg4000)) {  
    
polygon = {
      
this.nxthis.ny,
      
this.nx-(2/16), this.ny-(2/16),
      
x-(2/16),y-(2/16),
      
xy
    
};
    
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