EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   NPC Pathing for dummies. (https://www.eqemulator.org/forums/showthread.php?t=998)

DeletedUser 04-03-2002 09:52 AM

NPC Pathing for dummies.
 
while curx isn't equal to newx
{
xold = curx;
xnew = (whatever the hell you would do to pull the x out of the line);
time = (whatever you would do to pull the time out);
xmove = (xnew - xold) / time;
while (a < time) do {
xthis = xold + xmove;
}
<repeat this for y and z>
move.npc (xthis, ythis, zthis);
}



This is slightly basterdized code... as in nothing like C++, but as soon as i get it into c++ it'll be pretty nice.

Merkur 04-03-2002 09:56 AM

try to use this.. :D


All times are GMT -4. The time now is 09:03 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.