API REFERENCE

LockCameraPos

Locks the gameplay camera position. Useful for freecam and spectate features.

Syntax

ONYX.LockCameraPos(state)

Parameters

  • state (boolean) — Pass true to lock, false to unlock.

Return(s)

None

Behavior

  • Call with true to lock the gameplay camera position.
  • Call with false to release it again.

Example(s)

ONYX.LockCameraPos(true)
ONYX.SetCameraPos(15.0, 20.0, 30.0)