Skip to reading
Action Lists & Events

Advanced: structured action data

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

Most work should use the visible forms. Structured action data is useful when reviewing exported records, calling helpers from scripts or working around a field that a particular form does not expose. An action object contains type plus that action's stored field keys.

Code example
{
  "type": "ShowMessage",
  "text": "The signal is on.",
  "duration": 2.2,
  "blockInput": false
}

A list is a JSON array of those objects. Its order is the order of execution. Valid JSON uses double quotes, true/false without quotes for Booleans, and no trailing comma.

Code example
[
  {"type":"ChangeVariable", "name":"powered",
   "operation":"set", "value":true},
  {"type":"PlaySound", "assetId":"chime",
   "channel":"puzzle"},
  {"type":"ShowMessage", "text":"The signal is on.",
   "duration":2.2}
]

Paste a value into the correct field or record location. A list array is not a whole scene record, and a cutscene's event object wraps its action inside an action member. Keep a project backup before editing large raw records.

Page 176 of 189Permalink
Go to page