# General - Send Message

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

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FF5gglZnnrkRjj5QpAqPw%2Fimage.png?alt=media&#x26;token=cda7e878-d49c-45c9-ba01-9831aae62cbd" 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
