CRaPI - Correct Robust and Perfect API

BasicActions.DashToPointLookingAtPoint Method (Player, Point2D, Int32, Point2D)

public static Command[] DashToPointLookingAtPoint(
   Player pPlayer,
   Point2D pDashPoint,
   int pPower,
   Point2D pLookPoint
);

Parameters

pPlayer
The agent
pDashPoint
The point to dash to
pPower
What power to use when dashing
pLookPoint
The point to look at

Return Value

The action commands for the dash and the turn-neck

Remarks

If the angle between the look-point and the run-point is greater than MaxNeckAngle or lesser than MinNeckAngle, then consider to change the view-width of the agent to make sure the agent can see the look-point.

The angle-margin for when to turn and when to dash is +/- 5 degrees.

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 | BasicActions.DashToPointLookingAtPoint Overload List | DashToPoint | LookAtPoint