TaleWorlds/Documentations

Document AgentProximityMap

Opened this issue · 1 comments

In cRPG, we use Mission.GetAgentsInRange extensively. It seems like if the radius is less than the proximity map max search radius it will use the AgentProximityMap. I'm wondering if mappers have to do anything to use that feature. Could you please document that part.

You don't have to worry about the code. There is a distance limit (not a constant number - depends on how large the scene is), and if the check is done below the limit, proximity map system is used (grid search), otherwise, full agent search is used (list search).