CRaPI - Correct Robust and Perfect API

BasicActions.CatchBall Method (Player)

public static Command CatchBall(
   Player pPlayer
);

Parameters

pPlayer
The player (goalie)

Return Value

The action command for the catch

Remarks

Creates a catch command, with the direction to the ball. It is not considered if the player is a goalie, if the ball is catchable, or if the game is on. Use Player.BallIsCatchable to determine if the ball is catchable or not.

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.CatchBall Overload List