Included Reaction Objects
Last updated
Last updated
There are 5 included example Reaction Objects. It is recommended that you use these before creating your own.
Note: Assume the following Reaction Object is called when an AI reaches the Suspicious Threat Level.
Display a debug message that reads "What was that?!" to the Unity Console.
Display a debug message that reads "What was that?!" to the Unity Console, move to the loudest detected target, and then wait 3 seconds.
Display a debug message that reads "What was that?!" to the Unity Console, play an emote animation with an ID of 1, delay the next reaction by 1 second, move to the loudest detected target, and then wait 3 seconds.
Display a debug message that reads "What was that?!" to the Unity Console, play an emote animation with an ID of 1, delay the next reaction by 1 second, generate 2 waypoints within a radius of 5 units of loudest detected target waiting 2 seconds in between each waypoint, wait for the AI to finish reaching all waypoints, and then display a debug message that reads "Hmm...guess I'm hearing things..." to the Unity Console.
Display a debug message that reads "What was that?!" to the Unity Console, have the AI enter its combat state (allowing it to equip its weapon and use its combat animations), delay the next reaction by 1 second, set it to use its run animations, generate 2 waypoints within a radius of 5 units of loudest detected target waiting 2 seconds in between each waypoint, wait for the AI to finish reaching all waypoints, exit its combat state (allowing it to unequip its weapon and use its non-combat animations), reset all other settings back to their defaults, and then display a debug message that reads "Hmm...guess I'm hearing things..." to the Unity Console.