Skip to reading
PCA Script Programming

Designer: Lua Scripts

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 property paths > p. 329

Read/editing source metadata is different from invoking a function. Use the shared router to execute Lua, and explicitly preserve module/event conventions in Lua source.

Reference shape: lua_scripts.math_lua.property_path.

The example ID is illustrative. Choose an existing record in your own project; direct camera, spawn and objective lookups must be unambiguous.

Source table from Designer: Lua Scripts, page 268
Property pathType / accessPurpose and limits
idtext R / DefinitionStable Lua Script ID.
nametext W / DefinitionLua Script display/editor name.
descriptiontext W / DefinitionLua Script description.
foldertext W / DefinitionEditor organization folder.
languageVersiontext R / DefinitionLua language version.
sourcetext W / DefinitionLua 5.4 source text. Edit source in the Lua Designer; changes invalidate the Lua runtime cache.
globalboolean W / DefinitionWhether one persistent instance listens globally.
eventsarray W / DefinitionDeclared Lua-script event bindings.
enabledboolean W / DefinitionWhether this Lua Script is enabled.
customdictionary W / Definition / ContainerProject-defined script properties.
Page 268 of 357Permalink
Go to page