GetEntityRotation
A prop’s yaw, pitch and roll.
Syntax
Section titled “Syntax”GetEntityRotation(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
Returns
Section titled “Returns”number, number, number - the yaw, pitch and roll in degrees (the pitch and roll 0 for anything but a prop); nil when there is no such entity
Example
Section titled “Example”local yaw, pitch, roll = GetEntityRotation(shelf)local x, y, z = GetEntityPos(shelf)SaveFurniture(mesh, x, y, z, yaw, pitch, roll)See also
Section titled “See also”SetEntityRotation · GetEntityPos · the Props group of the index
