Skip to main content
POST
Attach a Lua script to an entity

Body

application/json

Request body for POST /script/load.

entity_id
integer<int32>
required

Entity ID to attach the script to.

Required range: x >= 0
path
string
required

Path to the .lua script file.

Response

200 - application/json

Script loaded and attached to the entity (or an error message).

ok
boolean
required
message
string | null