View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005056 | The Dark Mod | AI | public | 14.10.2019 13:29 | 15.11.2019 08:11 |
Reporter | grayman | Assigned To | grayman | ||
Priority | normal | Severity | feature | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Target Version | TDM 2.08 | Fixed in Version | TDM 2.08 | ||
Summary | 0005056: Can't stop an AI during patrol | ||||
Description | The 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. | ||||
Tags | No tags attached. | ||||
Created a new AI event called "stopPatrol", used like this: $Robert.stopPatrol(); 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: $Robert.stopPatrol(); 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.stopPatrol(); $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 sys.trigger($ChangeRobertsPatrol); Robert.setKey("alert_idle", "1"); // force "has seen evidence" |
|
Added new AI event to stop an AI during his patrol. Rev 8391: MovementSubsystem.cpp MovementSubsystem.h AI_events.cpp AI.h |
|
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 | |
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 |