Skip to reading
Getting started with PCA3D

intro_tracking

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page
On this page

R10. Directed-opening helper sources

Runs the original tracking helper during the opening; stops when its generation/cutscene is no longer active.

Code example
func run(_context: Dictionary = {}) -> Variant:
    # A true tracking shot: follow the live actor, not a second guessed walk timer.
    var generation: int = Runtime.runtime_generation
    var actor: AdventureActor = Runtime.entity_nodes.get("ada") as AdventureActor
    while is_instance_valid(actor) and Runtime.runtime_generation == generation and
        Runtime.cutscene_runner.running and Runtime.active_camera_id == "intro_follow":
        var subject: Vector3 = actor.global_position
        Runtime.set_camera_pose(subject + Vector3(2.4,1.9,3.5), subject + Vector3(0,1.2,0),43)
        await Runtime.get_tree().process_frame
    return true

intro_skip#

Records the request to skip the introduction and asks the active cutscene to stop.

Code example
func run(_context: Dictionary = {}) -> Variant:
    Runtime.variables["intro_skip_all"] = true
    Runtime.cutscene_runner.skip()
    return true

intro_foreground_on#

Shows the prepared cinematic foreground overlay.

Code example
func run(_context: Dictionary = {}) -> Variant:
    Runtime._set_screen_overlay_visible(true)
    return true

intro_foreground_off#

Hides the cinematic foreground overlay.

Code example
func run(_context: Dictionary = {}) -> Variant:
    Runtime._set_screen_overlay_visible(false)
    return true

intro_reverse_on#

Shows reverse-angle architecture needed behind the conversation shots.

Code example
func run(_context: Dictionary = {}) -> Variant:
    Runtime.set_entity_enabled("intro_reverse_wall", true)
    Runtime.set_entity_visible("intro_reverse_wall", true)
    Runtime.set_entity_enabled("intro_reverse_trim", true)
    Runtime.set_entity_visible("intro_reverse_trim", true)
    Runtime.set_entity_enabled("intro_reverse_rail", true)
    Runtime.set_entity_visible("intro_reverse_rail", true)
    return true

intro_reverse_off#

Hides the temporary reverse-angle architecture.

Code example
func run(_context: Dictionary = {}) -> Variant:
    Runtime.set_entity_enabled("intro_reverse_wall", false)
    Runtime.set_entity_visible("intro_reverse_wall", false)
Page 179 of 184Permalink
Go to page