Skip to reading
PCA Script Programming

toggle_glow()

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

Toggle Glow | Action ID: ToggleGlow

Invert an object's authored glow state and optionally record it in a variable.

Source table from toggle_glow(), page 156
Option key / fieldMeaning and accepted inputDefault
Entity entityIdChoose a scene entity ID.Blank
Variable variableText.Blank

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

Code example
toggle_glow({"entityId": "archive_door", "variable": "powered"})

In use. Toggle a test lamp during inspection. Visible bloom also depends on renderer/environment support. A bright material without bloom is still emissive; glow is not a mirror reflection of the player.

set_glow()#

Set Glow | Action ID: SetGlow

Set an object's authored glow state explicitly.

Source table from toggle_glow(), page 156
Option key / fieldMeaning and accepted inputDefault
Entity entityIdChoose a scene entity ID.Blank
Enabled enabledExplicit on/off state for the feature or response.true
Variable variableText.Blank

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

Code example
set_glow({"entityId": "archive_door", "enabled": true, "variable": "powered"})

In use. Enable the signal lamp once the circuit is powered. Use the object's glow setup and the room's bloom/glow settings together. Repeating Set Glow Enabled is safer than toggling when a trigger can fire repeatedly.

Page 156 of 357Permalink
Go to page