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);
}