DetachObject()
Detach Object
Detach an object that was attached through the attachment system.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Object entityId | Choose a scene entity ID. | Blank |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await DetachObject({"entityId": "archive_door"})In use. Detach the lantern before placing it on the table, then position it as required. Detaching does not automatically give an inventory item back or select a new animation.
AttachParticleEffect()#
Attach Particle Effect
Attach an existing particle-effect entity to a target point with an optional offset.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Particle Effect entityId | Choose a scene entity ID. | Blank |
| Target Object targetId | Choose a scene entity ID. | Blank |
| Target Attach Point targetPoint | Name of the attach point on the target entity. | Blank |
| Attachment Offset offset | Attachment offset as [X, Y, Z]. | [0, 0, 0] |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await AttachParticleEffect({
"entityId": "archive_door",
"targetId": "archive_door",
"targetPoint": ""
})In use. Attach smoke to a pipe's smoke_outlet point. Select the scene's particle entity, not just an imported texture used by that emitter. Keep the offset in the intended attachment space.
