set body orientation||doc135469

September 20, 2022

Format

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

Description

Sets the body orientation angle of the solid object.


Parameters

Variable name type Description
yaw float towards value


Code Samples

on the client side of the objectmount script, set the body orientation angle of the entity object to 90 degrees

this:setBodyYaw(90)