wiki:fw

Version 1 (modified by jpawlick, 13 years ago) (diff)

--

This command tells the agent to fire its weapon until the next AI frame. It fires the weapon exactly in the direction it is looking. Issuing two fw commands in a single AI frame results in the weapon only being shot once, because fw reports as soon as it is done scheduling the firing. This design is implemented so that firing does not interfere with other actions such as movement. To queue up successive fire commands, interleave fw commands with other commands (sk is provided for this reason).

Parameters:

  • This command takes no parameters.

Reports:

  • done once firing has begun.
  • popped if popped by po.
  • forgotten if deleted by fa.

Example:

  • User sends: "n fw 512 45 -30"
  • Bot turns left 45 degrees and looks 30 degrees up.
  • Bot replies "cp ro 512 done"