CRaPI - Correct Robust and Perfect API

BasicActions.TurnAndLookAtPoint Method 

Generates a command to turn the body towards a point, and sets the HeadAngle to zero, i.e. the player is looking in the direction of the body.

public static Command[] TurnAndLookAtPoint(
   Player pPlayer,
   Point2D pPoint
);

Parameters

pPlayer
The player
pPoint
The point to turn to

Return Value

The action commands for the turn and turn-neck

Remarks

This method does not send any command to the server, it is therefore up to the agent to execute the command on the server.

See Also

BasicActions Class | TeamYaffa.CRaPI Namespace | TurnToPoint | LookAtPoint