I'm coding the TeamAI and SquadAI for my gametype and I'm having a problem getting bots to target a moving objective.
I have a class derived from GameObjective with bStatic set to false so that I can dynamically spawn them during play. The Objective is attached to an object that moves around. When I set the Objective as a squads SquadObjective (by returning the objective in GetPriorityAttackObjectiveFor) the bots recognize it as their objective, but are unable to path to it.
I know bots can path to moving objects (they chase the flag in CTF) but I can't figure out why they won't path to the GameObjective. Could it be that since it's a GameObjective they are looking for predetermined paths made during compiling the map?
I've tried overriding TellBotHowToDisable and SpecialHandling to return a path to the actor the Objective is attached to, but that doesn't seem to work either.
I have a class derived from GameObjective with bStatic set to false so that I can dynamically spawn them during play. The Objective is attached to an object that moves around. When I set the Objective as a squads SquadObjective (by returning the objective in GetPriorityAttackObjectiveFor) the bots recognize it as their objective, but are unable to path to it.
I know bots can path to moving objects (they chase the flag in CTF) but I can't figure out why they won't path to the GameObjective. Could it be that since it's a GameObjective they are looking for predetermined paths made during compiling the map?
I've tried overriding TellBotHowToDisable and SpecialHandling to return a path to the actor the Objective is attached to, but that doesn't seem to work either.
Comment