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
is_rotatingtype: bool Returns whether the client is setting rotations or not

Functions

set_rotation(yaw : number, pitch : number, [priority : 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
  • priority (number) The priority (optional, default: 0)