GetPlayerHeading

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
GetPlayerHeading

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Get the specified player's heading (rotation).

Syntax

GetPlayerHeading(player)

Parameters

  • player
    The player identifier.

Return Value

  • This function returns heading in float.

Example

local heading = GetPlayerHeading(playerId)

See also