Thread: New Functions?
View Single Post
  #12  
Old 04-06-2005, 05:55 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by jake13jake
Yes, I've heard you can do that in gscript2. I just haven't come across having to use it yet since gscript2 came out.
NPC Code:
function dist(x1, y1, x2, y2)
{
return ((x1 - x2) ^ 2 + (y1 - y2) ^ 2) ^ (1 / 2);
}

Reply With Quote