Skip to content

types.client_rotation_event

Called when updating the player rotation

Properties

NameDescription
rotationtype: s.vector2 The current rotations (x: yaw, y: pitch)
tick_deltatype: number The tick delta

Functions

set_rotation(yaw : number, pitch : number)

Sets the new rotation, rotations will automatically be corrected (GCD applied, properly clamped & wrapped)

  • yaw (number) The new yaw
  • pitch (number) The new pitch