Game Development Community

Bot Path-Finding with delay

by Eran Caspi · in Torque Game Engine · 04/06/2005 (10:59 am) · 6 replies

Hello
I want to make a bot that will move on a path
but I need him do have some delay in a few places how can I do that?
I thought about triggers but Im not sure.

#1
04/06/2005 (11:03 am)
Do you mean that when he stops at each node he delays before going
#2
04/06/2005 (11:13 am)
OnReachDestination(...)
{
if (node I was going to == pathDelay1)
{
schedule(delaytime,"MoveToPath(NextNode);
}
else
moveToPath(nextNode);
}

Sound about right?
#3
04/06/2005 (11:19 am)
Just place a node where you want him to stop at if it isn't on a preexisting node... If you want him to stop in the middle of a path put a node there and add it to the path... else you could use a trigger to set the bot to hold then schedule a move after DELAY_TIME... .
#4
04/08/2005 (8:50 am)
Thank you for the help :)
#5
04/08/2005 (11:32 am)
Did it work?
#6
04/08/2005 (12:45 pm)
I didn't try it since its a bit too much for me
Im just a beginer and I thought it will be something simple
but I can see its not that simple so I will come back to this in a few
weeks.