wiki:mb

This ProtocolZero command sends the agent walking until it hits an obstacle it cannot pass (including walls or other entities) or the given distance is up, whichever is sooner. It will walk off cliffs and into slime or lava. As with all movement commands, it will also slide along oblique walls or use jump pads. In all cases, moveby counts the total motion while it is running, not just the motion in the provided direction or motion due to walking. For example, if you ask an agent to moveby 50 and a rocket blast launches it 30 sideways, it counts this 30 against the total distance it is responsible for running. If this behavior is unwanted, the user may wish to use mt instead.

Parameters:

  • 1: integer obstacle flag: 1 if the agent should hop over low obstacles, 0 if it should report blocked when it encounters them.
  • 2: float theta, the heading in which the agent should walk relative to its current facing. 0 is straight ahead, 90 is strafe left, etc.
  • 3: float speed, 1.0 = normal maximum bot movement speed (400 in game terms), 0 = stopped. -1 = reverse maximum speed. In the current version, values out of the [-1, 1] range are not supported.
  • 4: float distance, how far the bot should walk. The bot will hit the spot precisely (if it is possible to), and will spend an extra frame making sure that it does (usually by shuffling back to deal with slippery surfaces, overshooting the distance, etc). Negative distances are reset to 0: if you want to move a "negative distance", just increase theta by 180 degrees.

Reports:

  • done if the movement was successful.
  • blocked if the previous frame of attempted movement produced no effect.
  • overshot if the quagent overshot a bit and cannot move back (usually because it fell off a cliff, was the target of a sv, or hit a jump pad).
  • popped if popped by po.
  • forgotten if deleted by fa or fm.
  • replaced if replaced by a command scheduled with 'r'.

Example:

  • User sends: "n mb 512 0 0 1 50"
  • Bot moves straight ahead 50 units,
  • Bot replies "cp mb 512 done"
Last modified 13 years ago Last modified on Jun 21, 2011 10:33:17 AM