MLPlayer.SetHeading(number heading)
Sets the player heading. Heading is defined by Z+ axis being the 0 degree and increasing in clockwise.
Parameters:
Name | Type | Description |
---|---|---|
heading | number | heading in degrees. |
Usage
---@type MLPlayer
local mlplayer;
---@type number
local heading;
mlplayer.SetHeading(heading)