Need help!!! AI path finding help! for class
by Tom Biagioni · in Torque Game Engine · 02/07/2009 (7:17 pm) · 4 replies
I have a question on how i make a bot follow a looped path? i know how to make the bot go to waypoints using function AIPlayer::followPath(%this,%path,%node)
however i want to want to, i guess, patrol. like if i set up way points in a circle i want him to continuously walk that path, not just stop on thedestination waypoint.
i am using the demp TGE for school.
however i want to want to, i guess, patrol. like if i set up way points in a circle i want him to continuously walk that path, not just stop on thedestination waypoint.
i am using the demp TGE for school.
#2
02/08/2009 (1:44 pm)
ah got it:) i totaly missed that loop part. thanks. I have another question, how would i go about creating a second bot that walks at a slower speed. I tried creating another instance of the bot using a different datablock but when he spawned on the path he would not move. However the original bot moves with no problem.
#3
02/08/2009 (5:44 pm)
You could use a script to alter the "movespeed" from 1.0 to something slower like 0.5. %bot.setMoveSpeed(0.5);
#4
02/08/2009 (8:22 pm)
hmm let me try that
Associate Steve Acaster
[YorkshireRifles]