modify(e, 'look')

View on GitHub

Syntax

modify(entity, 'look', x, y, z)
modify(entity, 'look', vec)

Sets entity’s 3d vector where the entity is looking. For cases where the vector has a length of 0, yaw and pitch won’t get changed. When pointing straight up or down, yaw will stay the same.