Sets the object to face a certain direction.
A floating point number that represents the direction to face. See description for additional details.
Causes the caller of this function to face fDirection.
There are some predefined constants for a direction:
DIRECTION_EAST = 0.0
DIRECTION_NORTH = 90.0
DIRECTION_WEST = 180.0
DIRECTION_SOUTH = 270.0
This action is often used for creatures. It also works for dynamic placeables, but small changes (less than 20 degrees) may not be rendered visually, even though the new facing (as determined by GetFacing) is exactly right.
Note that GetFacing will correctly return the facing to the nearest degree from 1.62.
There are issues with setting the facing of sitting creatures.
author: Tom Cassiotis, editor: Jasperre