CRaPI - Correct Robust and Perfect API

BasicActions.KickToObject Method (Player, FieldObject, Int32, Command)

public static void KickToObject(
   Player pPlayer,
   FieldObject pObject,
   int pPower,
   out Command pAction
);

Parameters

pPlayer
The player
pObject
The object to kick to
pPower
The power to kick with. Should not exceed MaxPower and MinPower.
pAction
The action command for the kick

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 | BasicActions.KickToObject Overload List | KickToPoint