Workshop.codes
Create

Set Facing Last updated November 26, 2024

Description

Sets the facing of one or more players to the specified direction.

Snippet

Set Facing(Event Player, Vector(0, 0, 0), To World);

Properties

Returns: Void
Parameters: Player, Direction, Relative

Player
Type: Player | Array (Player), Default: Event Player
The player or players whose facing will be set.

Direction
Type: Direction, Default: Vector
The unit direction in which the player or players will face. This value is normalized internally.

Relative
Type: Relativity, Default: To World
Specifies whether direction is relative to world coordinates or the local coordinates of the player or players.

Workshop.codes