Page MenuHomeFeedback Tracker

AI get stuck walking in circles forever if trying to move to building position which is under terrain surface.
New, NormalPublic

Description

Building have defined building positions (buildingPos).
Buildings are always flat, the terrain surface is not.
Some buildings have their buildingPos under the terrain surface.

OBS:
If an AI attempts to reach a building position that is under the terrain surface, they can become stuck in an eternal loop attempting to reach the building position.
They typically end up walking in a small circle on terrain surface over the building position.

EXP:
AI should move as close to the building position as possible, then stop.
AI should be able to recognise when they are stuck in an eternal movement loop.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
AI Pathfinding / Motion
Steps To Reproduce
  1. Open mission editor on Tanoa terrain.
  2. Place player as soldier, and one subordinate AI.
  3. Preview mission.
  4. Pause mission. In debug console execute the following code: {_x setpos [8270.21,11162.8,0.0014801]; _x setdir 223.412} foreach units group player
  5. Unpause mission.
  6. Send you subordinate to position 14 in the building in front of you.
  7. Observe AI enter building paths via front entrance (far end of building), then towards building position 14. Note the AI will walk around in circles over the building position forever.
Additional Information

Tested in dev build 1.65.138786

Event Timeline

ceeeb created this task.Oct 12 2016, 10:46 PM
ceeeb renamed this task from AI get stuck if trying to move to building position which is under ground surface. to AI get stuck walking in circles forever if trying to move to building position which is under terrain surface..Oct 12 2016, 11:15 PM