Master of Dromed on 22/5/2020 at 17:07
I have an annoying problem when working at the update on my map A Tough Night. In this huge city i placed multiple flee points, at least one per quarter, i think they are eight of them in total in the whole city. I set them with the same priority AI - Utility- Flee point: 75. Problem is when a bystander is alerted he run to a flee point in another part of the town instead of the close one and get stuck forever in locked doors or locked gates on the way. When i navigate on the map in game i found everywhere AIs stuck in doors and gates.. Is there a way to fix that? And anyway how do these flee points really work? You can have multiple flee points on a mission or just one?
vfig on 22/5/2020 at 17:59
Short answer:
You can (and should) have multiple flee points. If the player is between the AI and the flee point, the AI will almost always ignore it and choose a different one. So you should have multiple flee points in each area, in various different directions.
You can also, if you still need to, force an AI to only choose from specific flee points by creating AIFleeTo links from the AI to one or more points.
If it's still a problem, you can prevent AIs getting stuck at locked doors or gates is to give their own copy of the appropriate key internally, with a Contains link to their own copy of the key; make sure the Link Data is "Generic Contents".
Long answer: (
https://www.ttlg.com/forums/showthread.php?t=149893&p=2424517) lots of details about how AIs choose flee points.
Master of Dromed on 22/5/2020 at 19:06
Quote Posted by vfig
Short answer:
You can (and should) have multiple flee points. If the player is between the AI and the flee point, the AI will almost always ignore it and choose a different one. So you should have multiple flee points in each area, in various different directions.
You can also, if you still need to, force an AI to only choose from specific flee points by creating AIFleeTo links from the AI to one or more points.
If it's still a problem, you can prevent AIs getting stuck at locked doors or gates is to give their own copy of the appropriate key internally, with a Contains link to their own copy of the key; make sure the Link Data is "Generic Contents".
Long answer: (
https://www.ttlg.com/forums/showthread.php?t=149893&p=2424517) lots of details about how AIs choose flee points.
Thanks a lot for the answer vfig! Very interesting! You really saved my life :cheeky:
john9818a on 26/5/2020 at 04:55
If an AI sees you while fleeing, he/she will turn and run to the next flee point after reaching the intended flee point. Also when the AI stops at a flee point and he knows what object cause the AI to flee, he will rotate toward that object.