Game Development Community

Bots follow me

by Howard Dortch · in Torque Game Engine · 11/07/2004 (2:55 pm) · 4 replies

I dont see any commands for a bot to chase after me. The console methods for aim and move like setTargetObject() but dont have one to followObject() . Anyone know if there are functions that do this?

#1
11/07/2004 (5:05 pm)
Check in the AIPlayer class. Somewhere in there, there is a variable set to true that relates to following. I don't have it in front of me at the moment, so I can't tell you what function, but it probably won't take too long to find. And if that doesn't work, make sure that you don't have something similar being set in aiplayer.cs. Hope that helps.
#2
11/07/2004 (5:48 pm)
Dont see it in there.
#3
11/07/2004 (5:58 pm)
Make a script loop that sets the bot's move destination to the player you want it to follow's position. In my bot's follow loop, I check to see if the player is standing still or not.
#4
11/07/2004 (7:08 pm)
@Josh yeah I can do that, just figgered it could be done in the engine c++ code since all the other functions are there.