Workshop.codes
Create

Horizontal Angle Towards Last updated November 26, 2024

Description

The horizontal angle in degrees from a player's current forward direction to the specified position. The result is positive if the position is on the player's left. Otherwise, the result is zero or negative.

Snippet

Horizontal Angle Towards(Event Player, Vector(0, 0, 0));

Properties

Returns: Float
Parameters: Player, Position

Player
Type: Player, Default: Event Player
The player from whose current facing the angle begins.

Position
Type: Position, Default: Vector
The position in the world where the angle ends.

Workshop.codes