Skip to content

Camera

The Camera namespace provides helpers for reading and updating local camera behavior.


Functions

SetDistance(val: number)void

Sets the distance.

  • valnumber - default 1200

GetDistance()number

Retrieves the distance.

Returned:

  • number - The requested distance.

ToggleFollowLocalHero(val: boolean)void

Enables or disables camera follow mode for the local hero.

  • valboolean - The value to use.