> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/message.md).

# General - Send Message

Sends Messages to the root GameObject of the target or the animal using the brain

<figure><img src="/files/IQMrSMfP6hKpYVJyR54D" alt=""><figcaption></figcaption></figure>

## Parameters (Except for Common Parameters)

### Affect

Apply the task to the Animal(Self) or the Target(Target)

### When

When to send the message

1. On Start
2. On Update
3. On Exit

### Use Send Message

Uses Unity.SendMessage method instead of the Internal way of sending messages on Malbers Components which is a bit faster. (Use this when you need to send messages to custom scripts)

### Send To Children

Sends the message to all the children gameobjects as well

### Near Target

Send the message ONLY when the AI is near the target e.g. AI has arrived at target.

### Send To Root

The message will be sent to the root of the hierarchy

### Messages (List)

Specify what messages to send in this list
