# Logic Actors

Logic Actors are small "script-like" actors that help you create more complex level scripting logic. They usually only serve one specific purpose, so they can be used in any combination when working on levels.

The plugin comes with a collection of logic actors such as Branch, Relay, Counter, Spawner, etc. All logic actors can be found in **Window → Place Actors**.

<figure><img src="https://1586816513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJUOUKxX4X7uzzyzY7fQb%2Fuploads%2FMxpkkaZeVY9uSeYhBUkW%2FLogicActors.jpg?alt=media&#x26;token=4bf26d8b-35b3-4b0b-9086-9b40cbb23a15" alt=""><figcaption></figcaption></figure>

### Creating Custom Logic Actors

Custom logic actors can also be created by subclassing the `LogicActorBase` class.

<figure><img src="https://1586816513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJUOUKxX4X7uzzyzY7fQb%2Fuploads%2F8gxi6mJSrBaRb5SVpkJP%2FCreateLogicActor.jpg?alt=media&#x26;token=035d0c2e-fe7d-409d-8c00-40f85408c317" alt=""><figcaption></figcaption></figure>

The idea is that you create your own Logic Actors that interact with different parts of your game. Here are some ideas and examples for custom logic actors:

* Adding or removing items from the player's inventory.
* Adding/removing interactions from objects.
* Updating the current objective in the game.
* Starting an ambush that spawns enemies.


---

# 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://horizongames.gitbook.io/actorio/logic-actors.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.
