Table of Contents

Method SetCameraFacing

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

SetCameraFacing(float, float, float, CameraTransitionType)

Changes the direction the player's camera is facing.

public Task SetCameraFacing(float direction, float pitch = -1, float distance = -1, CameraTransitionType transitionType = CameraTransitionType.Snap)

Parameters

direction float

Horizontal angle from East in degrees. -1 to leave the angle unmodified.

pitch float

Vertical angle of the camera in degrees. -1 to leave the angle unmodified.

distance float

Distance (zoom) of the camera. -1 to leave the distance unmodified.

transitionType CameraTransitionType

The transition to use for moving the camera.

Returns

Task