Appearance
types.client_rotation_event
Called when updating the player rotation
Properties
| Name | Description |
|---|---|
rotation | type: s.vector2 The current rotations (x: yaw, y: pitch) |
tick_delta | type: number The tick delta |
is_rotating | type: 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)
