Skip to content

GetEntityRotation

A prop’s yaw, pitch and roll.

GetEntityRotation(id)
Parameter Type
id number the entity

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

local yaw, pitch, roll = GetEntityRotation(shelf)
local x, y, z = GetEntityPos(shelf)
SaveFurniture(mesh, x, y, z, yaw, pitch, roll)

SetEntityRotation · GetEntityPos · the Props group of the index