# Included Reaction Objects

## Included Reaction Objects

There are 5 included example Reaction Objects. It is recommended that you use these before creating your own.&#x20;

{% hint style="info" %}
**Note:** Assume the following Reaction Object is called when an AI reaches the Suspicious Threat Level.
{% endhint %}

### Very Simple <a href="#user-content-very-simple" id="user-content-very-simple"></a>

Display a debug message that reads "What was that?!" to the Unity Console.

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2F2Z01VoheehxldjGMWbJe%2FVery%20Simple%20Reaction%20Object.png?alt=media&#x26;token=658dde8b-3b64-41d1-af29-fd266232d931" alt=""><figcaption></figcaption></figure>

### Simple <a href="#user-content-simple" id="user-content-simple"></a>

Display a debug message that reads "What was that?!" to the Unity Console, move to the loudest detected target, and then wait 3 seconds.

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2Ffp8VWWBMZRUQalO0EVss%2FSimple%20Reaction%20Object.png?alt=media&#x26;token=48725519-070b-4cfc-8b95-6b65abf64b0c" alt=""><figcaption></figcaption></figure>

### Intermediate <a href="#user-content-intermediate" id="user-content-intermediate"></a>

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.

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2FjZV2FPZt8DJXbF1EO2xq%2FIntermediate%20Reaction%20Object.png?alt=media&#x26;token=f92e7fb4-293a-4432-8c53-910aa1c42a77" alt=""><figcaption></figcaption></figure>

### Advanced <a href="#user-content-advanced" id="user-content-advanced"></a>

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.

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2FjaOvbKSOUkcqoQLDvmZp%2FAdvanced%20Reaction%20Object.png?alt=media&#x26;token=8efbdc08-1b43-4ef3-87fd-cc806ce5ab18" alt=""><figcaption></figcaption></figure>

### Complex <a href="#user-content-complex" id="user-content-complex"></a>

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.

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2FN7IPsaOnCiyT764iYR8U%2FComplex%20Reaction%20Object.png?alt=media&#x26;token=fe73e71b-57c7-456d-85dd-c2e1a61e036b" alt=""><figcaption></figcaption></figure>

![](https://camo.githubusercontent.com/1b9f7b4d1fc984804d93b6f949b5c9ed12b4a7c31d91c4e5d863a23bfe6d5fef/68747470733a2f2f692e696d6775722e636f6d2f6c6659466656362e706e67)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-profiles-and-objects/reaction-object/included-reaction-objects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
