AI question
by Robert Garrett · in Torque Game Engine · 07/13/2002 (11:32 am) · 7 replies
I'm having some small difficulties with my AI. My problem is that the it seems as though the AI system was created to specifically handle bots moving along waypoints and not bots that simply stand around doing nothing until they are aggroed.
Right now I'm using the callback functions and the code by Stefan in the Resource section (very helpful stuff btw) and everything works fine, as long as I am in aggro range from the moment the bot is added. Otherwise, i can't get the darn thing to notice me.
The problem seems to be that all the callBack functions are called only in AIPlayer::onAdd and AIPlayer::getMoveList, therefore unless the bot is aggroed the second it is added and therefore moving, it can't get re-aggroed, since no callbacks are being called if it is just standing still. Has anyone solved this problem or figured out how to use callbacks if the bot isn't moving?
Right now I'm using the callback functions and the code by Stefan in the Resource section (very helpful stuff btw) and everything works fine, as long as I am in aggro range from the moment the bot is added. Otherwise, i can't get the darn thing to notice me.
The problem seems to be that all the callBack functions are called only in AIPlayer::onAdd and AIPlayer::getMoveList, therefore unless the bot is aggroed the second it is added and therefore moving, it can't get re-aggroed, since no callbacks are being called if it is just standing still. Has anyone solved this problem or figured out how to use callbacks if the bot isn't moving?
#2
Or 7 years, 9 months, 7 days including the end date
* 245,203,200 seconds
* 4,086,720 minutes
* 68,112 hours
* 405 weeks (rounded down)
Surely a contender for the record?
Spawn a path with only one marker, or %yourbot.setmovespeed(0.0);, or write a spawn function which doesn't require a path
04/18/2010 (11:04 am)
2838 daysOr 7 years, 9 months, 7 days including the end date
* 245,203,200 seconds
* 4,086,720 minutes
* 68,112 hours
* 405 weeks (rounded down)
Surely a contender for the record?
Spawn a path with only one marker, or %yourbot.setmovespeed(0.0);, or write a spawn function which doesn't require a path
#3
04/18/2010 (11:26 am)
yea, but at least he got his answer! :D
#4
04/18/2010 (1:24 pm)
:( now I just feel like a newb for not checking that lol, I just made an inherited data block with a forward move speed = 0
#5
In his defence, its not actually that hard to find an archaic unanswered post when searching for solutions on the site
04/18/2010 (2:13 pm)
Surely a Master Arch Lich if ever one existed.In his defence, its not actually that hard to find an archaic unanswered post when searching for solutions on the site
#6
04/19/2010 (7:59 am)
eye considering half the ones that have been answered do not actually include the actual resolution
#7
05/03/2010 (12:01 pm)
See! That's why 7 year old posts don't get deleted. Eventually, they get answered! LOL
Torque Owner Joseph Bosch
Default Studio Name