View Issue Details

IDProjectCategoryView StatusLast Update
0005056The Dark ModAIpublic15.11.2019 08:11
Reportergrayman Assigned Tograyman  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status resolvedResolutionfixed 
Target VersionTDM 2.08Fixed in VersionTDM 2.08 
Summary0005056: Can't stop an AI during patrol
DescriptionThe current way of moving an AI to a new patrol path is to change a target on one of his upcoming path nodes, so that it points to the start of a new path.

However, the AI won't make the path change until he hits the path node that was changed.

We need a way to immediately stop the current patrol and switch the AI to his new path.
TagsNo tags attached.




15.10.2019 18:41

administrator   ~0011860

Last edited: 15.10.2019 18:42

View 2 revisions

Created a new AI event called "stopPatrol", used like this:


This stops Robert wherever he is, and he'll wait for subsequent commands to put him on his new path.

For example, to immediately put Robert on his new path, use this in your script file:

sys.trigger($ChangeRobertsPatrol); // an atdm:target_changetarget with the "add" spawnarg with the new path node name, and it's targetted at Robert.

If you want Robert to run to his new path, add the "run/1" spawnarg to the the path node shown in the atdm:target_changetarget. ("Head to the exits!!!")

If you want Robert to unsheathe his weapon while he runs to his new path, and patrol his new path with his weapon out, do this:

$Robert.setAlertLevel(1.6); // puts him in the Observant state, so that at some point he'll drop back into Idle State, where a decision is made based on "I saw evidence of an intruder" as to whether to unsheathe the weapon or not
Robert.setKey("alert_idle", "1"); // force "has seen evidence"



15.11.2019 08:11

administrator   ~0011865

Added new AI event to stop an AI during his patrol.

Rev 8391:


Issue History

Date Modified Username Field Change
14.10.2019 13:29 grayman New Issue
14.10.2019 13:29 grayman Status new => assigned
14.10.2019 13:29 grayman Assigned To => grayman
15.10.2019 18:41 grayman Note Added: 0011860
15.10.2019 18:42 grayman Note Edited: 0011860 View Revisions
15.11.2019 08:11 grayman Status assigned => resolved
15.11.2019 08:11 grayman Resolution open => fixed
15.11.2019 08:11 grayman Fixed in Version => TDM 2.08
15.11.2019 08:11 grayman Note Added: 0011865