CameraSetTargetCommand

Extends: ESCBaseCommand < Node

Description

camera_set_target time object

Configures the camera to follow the specified target object as it moves around the current room. The transition to focus on the object will happen over a time period.

Parameters

  • time: Number of seconds the transition should take to move the camera to follow object

  • object: Global ID of the target object

For more details see: https://docs.escoria-framework.org/camera

@ESC

Method Descriptions

configure

func configure() -> ESCCommandArgumentDescriptor

Return the descriptor of the arguments of this command

validate

func validate(arguments: Array)

Validate whether the given arguments match the command descriptor

run

func run(command_params: Array) -> int

Run the command

interrupt

func interrupt()

Function called when the command is interrupted.