Gameplay: Continuous object effects and attachments
Configure an effect or attach point first, then use these actions to control it. An attach point is a named location on an object, model bone or sprite. Contact watches report proximity between points; they are not a full physics collision system.
ToggleMotion()#
Toggle Motion
Invert an object's authored motion-enabled state, optionally mirroring that state into a variable.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room sceneId | Choose a scene ID. | Blank |
| Object entityId | Choose an entity in the selected scene. | Blank |
| State Variable (optional) variable | Choose a game variable name. May be blank. | Blank |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await ToggleMotion({"sceneId": "lab", "entityId": "archive_door", "variable": ""})In use. Toggle a rotating sign when a switch is used. Configure the object's motion in its inspector first. Repeated events invert the state again; use Set Motion when a specific final state matters.
