TurnToFaceObject(object, object)

Turns the target object to face another object

void TurnToFaceObject(
    object oObjectToFace,
    object oTarget = OBJECT_SELF
);

Parameters

oObjectToFace

The object to face

oTarget

The object to turn (Default: OBJECT_SELF)


Description

Turns the target object specified as oTarget to face the object specified as oObjectToFace. This is accomplished by wrapping calls to GetPosition and SetFacingPoint in an AssignCommand.

Calls
void AssignCommand(object oTarget)
void SetFacingPoint(float fPosition)
void GetPosition(object oTarget)



Requirements

#include "x0_i0_position"

Version

1.61

See Also

categories: Movement Functions


 author: Michael Nork