Skip to reading
PCA Script Programming

Builtins: Scripts, events and execution

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
On this page

set_project_property()#

Code example
set_project_property(path, value)

Change a supported runtime project-data path.

Returns: Boolean.

Code example
set_project_property("settings.musicVolume", 0.5)

Use the picker/key reference. Arbitrarily creating a key does not add engine behavior, and live application depends on the setting.

get_setting() and aliases#

Code example
get_setting(path, fallback = null)

Read below the project settings dictionary. A leading settings prefix is normalized by the helper.

Returns: Value or fallback.

Aliases: setting()

Code example
get_setting("musicVolume", 0.7)

set_setting()#

Code example
set_setting(path, value)

Change a setting through the runtime project-property bridge.

Returns: Boolean.

Code example
set_setting("musicVolume", 0.5)

For runtime features with a dedicated action, prefer it when immediate reconfiguration matters.

Page 67 of 357Permalink
Go to page