CRaPI - Correct Robust and Perfect API

BasicActions.DashToPoint Method (Player, Point2D, Int32, UInt32, Command)

public static void DashToPoint(
   Player pPlayer,
   Point2D pPoint,
   int pPower,
   uint pAngleMargin,
   out Command pAction
);

Parameters

pPlayer
The player
pPoint
The point to dash to
pPower
The power to dash with. Should not exceed MaxPower and MinPower.
pAngleMargin
The angle margin
pAction
The action command for the dash

Remarks

Dashes to the point if the angle to the point is +/- pAngleMargin degress. If the angle exceeds the pAngleMargin, 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