Skip to reading
PCA Script Programming

Gameplay: Control profiles, verbs and pointer behavior

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

These commands affect how the player operates the game. Movement profile, interaction mode, input device and visibility of the pointer are separate settings. Provide a way back when an experiment changes the controls.

set_runtime_controls_enabled()#

Set Runtime Controls Enabled | Action ID: SetRuntimeControlsEnabled

Enable or disable the runtime control-profile system.

Source table from Gameplay: Control profiles, verbs and pointer behavior, page 184
Option key / fieldMeaning and accepted inputDefault
Enabled enabledExplicit on/off state for the feature or response.true

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

Code example
set_runtime_controls_enabled({"enabled": true})

In use. Enable the newer adaptive controls for a sequence that uses device switching. Disabling the profile system is not identical to Set Player Input Enabled false; it changes which control machinery is in use.

set_movement_profile()#

Set Movement Profile | Action ID: SetMovementProfile

Choose legacy, point-and-click, direct, first-person or drag-to-move movement.

Source table from Gameplay: Control profiles, verbs and pointer behavior, page 184
Option key / fieldMeaning and accepted inputDefault
Movement Profile profileChoose: legacy, point-and-click, direct, first-person, drag-to-move."point-and-click"

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

Code example
set_movement_profile({"profile": "point-and-click"})

In use. Switch to direct movement for a short action scene and restore point-and-click afterward. Navigation, camera and input mappings still need to suit the chosen profile.

Page 184 of 357Permalink
Go to page