# Variables - Set Var Listener

Search for any Var Listener on the Animal or Target and sets a value

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FX7lLLWys4EnDoCdiuLS6%2Fimage.png?alt=media&#x26;token=2251e53c-7007-4b93-a196-01abbdc5d625" alt=""><figcaption></figcaption></figure>

## Parameters (Except for Common Parameters)

### Listener ID

Check the Variables Listener ID value for a match. When this Value is 0, the ID is ignored. Useful if targeting one specific listener.

### Check On

Check on Self, or Current Target

### Var Type

Bool, Int or Float

### Value Type

E.g. Bool/Float/Int Value


---

# 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://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/set-var-listener.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.
