Skip to reading
PCA Script Programming

despawn_object()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Despawn Scene Object | Action ID: DespawnObject

Remove a live object instance through the runtime scene-life route.

Source table from despawn_object(), page 120
Option key / fieldMeaning and accepted inputDefault
Room sceneIdChoose a scene ID.Blank
Scene Object entityIdChoose an entity in the selected scene.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
despawn_object({"sceneId": "lab", "entityId": "archive_door"})

In use. Remove a temporary projection when its sequence ends. Keep an ID or authored definition if it will be restored. Despawning a visible item does not automatically remove a matching inventory item.

Page 120 of 357Permalink
Go to page