<!-- Page: https://rustic-game-engine.pages.dev/docs/api/enabled -->

# Enabled state

Enable or disable the owning behavior entity.

[Feature status and language/platform compatibility](https://rustic-game-engine.pages.dev/markdown/reference/compatibility.md)

Choose an API to see its signature, parameters, examples and behavior.

## APIs

- [rustic.set_enabled()](https://rustic-game-engine.pages.dev/markdown/api/enabled/set-enabled.md)

## Module guide

## When to call it

Disable an entity when its behavior should stop after the current callback. Re-enable it from a controlling behavior or editor action. Use a local boolean instead when the entity should remain active.

## Variables

| Variable | Type | Required | Description |
| --- | --- | --- | --- |
| `enabled` | boolean | Yes | True to enable; false to disable. |

## Return and timing

No value. Lua updates host state directly; JavaScript/Web and external SDKs use their command boundary. The scheduler observes the resulting enabled state for lifecycle transitions. See [execution behavior](https://rustic-game-engine.pages.dev/markdown/guides/scripting.md#when-mutations-take-effect).

## Constraints and behavior

- Every gameplay language calls the engine-owned API. Rustic supplies SDKs and dispatches callbacks; scripts do not parse requests or serialize responses. See the language guide for complete setup and callback registration.
