Skip to content

cameraControl⚓︎

This event is raised when the camera's position or rotation matrix is changed. It can be used to alter the camera's transformations by changing cameraTransform for the third-person camera or armCameraTransform for the first-person camera.

--- @param e cameraControlEventData
local function cameraControlCallback(e)
end
event.register(tes3.event.cameraControl, cameraControlCallback)

Tip

An event can be claimed by setting e.claim to true, or by returning false from the callback. Claiming the event prevents any lower priority callbacks from being called.

Event Data⚓︎

  • animationController (tes3playerAnimationController): Read-only. Provides access to the player's animation controller.
  • armCameraTransform (tes3transform): The new arm camera transformation.
  • cameraTransform (tes3transform): The new camera transformation.
  • previousArmCameraTransform (tes3transform): Read-only. The arm camera transformation before any changes. Identical to armCameraTransform if the player teleported a significant distance.
  • previousCameraTransform (tes3transform): Read-only. The camera transformation before any changes. Identical to cameraTransform if the player teleported a significant distance.