Page MenuHomeFeedback Tracker

[Feature Request] Building pathfinding
New, NormalPublic

Description

I'd like to suggest a function for calculating the shorted path for AI inside a building, analoguous to calculatePath, taking into account ladders, and ideally worked in both Unscheduled and Scheduled environments (without needing agents with eventhandlers).

path = calculateBuildingPath [startpos near or inside building, endpos near or inside building, building] ;
(near or inside: for AI to find way into/out of building)

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Additional Information

AI has a hard time finding its way inside buildings, and even much simpler ones that the "hotel" structures with its several 100 building postions.

Even on vanilla Tanoa, the little sheetmetal hut just east of the cathedral in Georgetown, AI has problems finding the entrance (tested with calculatePath on "man" agent) or simply entering it from merely 20 m away.

A scripted loop helps when constantly "domove/moveTo" an AI CAManBase unit every sec in small movement segemts, which can be constructed by a scripted pathfinding function "fnc_House_path_Dijkstra". For that one I use the buildingpositions and buildingexits, in conjunction with connection-test by lots of "lineIntersectsObjs" between position. Very tedious, though.

Event Timeline

janh created this task.Jan 21 2023, 3:43 PM