CRaPI - Correct Robust and Perfect API

BasicActions.DashToPoint Method (Player, Point2D, Int32)

public static Command DashToPoint(
   Player pPlayer,
   Point2D pPoint,
   int pPower
);

Parameters

pPlayer
The player
pPoint
The point to dash to
pPower
The power to dash with. Should not exceed MaxPower and MinPower.

Return Value

The action command for the dash

Remarks

Dashes to the point if the angle to the point is +/- 10 degress. If the angle exceeds the 10 degree margin, a turn command is created so the angle to the point will be 0 degrees in the next cycle.

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.DashToPoint Overload List | DashToObject