get body orientation||doc135468

September 20, 2022

Format

 Entity:getBodyYaw() 
  • The class to which the function belongs:Entity

Description

Gets the body facing angle of the solid object.


Value Returned

type Description
float yaw axis orientation angle


Code Samples

on the client side of the objectmount script, get the body orientation angle of the entity object

local bodyYaw = this:getBodyYaw()