intro_tracking
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.
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 trueintro_skip#
Records the request to skip the introduction and asks the active cutscene to stop.
func run(_context: Dictionary = {}) -> Variant:
Runtime.variables["intro_skip_all"] = true
Runtime.cutscene_runner.skip()
return trueintro_foreground_on#
Shows the prepared cinematic foreground overlay.
func run(_context: Dictionary = {}) -> Variant:
Runtime._set_screen_overlay_visible(true)
return trueintro_foreground_off#
Hides the cinematic foreground overlay.
func run(_context: Dictionary = {}) -> Variant:
Runtime._set_screen_overlay_visible(false)
return trueintro_reverse_on#
Shows reverse-angle architecture needed behind the conversation shots.
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 trueintro_reverse_off#
Hides the temporary reverse-angle architecture.
func run(_context: Dictionary = {}) -> Variant:
Runtime.set_entity_enabled("intro_reverse_wall", false)
Runtime.set_entity_visible("intro_reverse_wall", false)