Skip to reading
Lua Scripting

Gameplay action fields

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

Earlier edition reference / Current 0.86.4.0 checked action IDs > p. 95

REFERENCE C

All 206 callable actions, alphabetically. Use await(Name({ field = value })) inside a Lua module. For actions with no fields use await(Name({})). Field descriptions identify editor pickers, types and explicit defaults. Supply the fields your action needs.

ActivateCamera / Activate / Blend to Camera

cameraId — Camera [cameras]

duration — Blend Seconds (-1 = camera default) [float] · default -1.0

wait — Wait for Blend [bool] · default true

AddAssetToScene / Add Asset to Scene

assetId — Asset [assets]

id — New ID [string]

name — Name [string]

position — XYZ [vector3]

enabled — Enabled [bool]

visible — Visible [bool]

AddCharacterToScene / Add Character To Scene

characterId — Character [characters]

id — New ID [string]

name — Name [string]

position — XYZ [vector3]

enabled — Enabled [bool]

visible — Visible [bool]

animation — Animation (optional) [string]

AddCharacterWaypoint / Character Waypoints: Add Waypoint

characterId — Character [characters]

sceneId — Waypoint Room [scenes]

waypointId — Waypoint / Object (optional) [entities_for_scene]

position — XYZ when no waypoint [vector3]

ignoreNavigation — Ignore Navigation Mesh [bool] · default false

Page 46 of 133Permalink
Go to page