Add & clone instances
Queue creation from a source path with an optional parent.
Feature status and language/platform compatibility
Choose an API to see its signature, parameters, examples and behavior.
APIs
Module guide
When to call it
Call for bounded gameplay events such as spawning a projectile, enemy, pickup, or effect. Avoid unbounded per-frame creation.
Variables
| Variable | Type | Required | Description |
|---|---|---|---|
source | string | Yes | Source asset or stable scene path. |
parent | string or null | No | Destination parent stable entity ID; omit for the default root. |
Return and timing
Embedded Lua returns the new entity ID and creates immediately. JavaScript/Web and external SDK instance commands return no created ID and apply in command order at callback completion (or external query flush).
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.