Thread: trigg
View Single Post
  #2  
Old 10-25-2001, 03:40 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
found this old script:

NPC Code:

if(playerenters) {
this.angle=0;
this.radius=5; //radius from player
this.speed=.1; //rotation speed
timeout=.05;
}
if(timeout) {
x=playerx+cos(this.angle)*this.radius;
y=playery+sin(this.angle)*this.radius;
this.angle=this.angle+this.speed;
timeout=.05;
}

Reply With Quote