This command tells the agent to switch weapons. The weapons are defined as follows:
- 1 = Gauntlet.
- 2 = Machinegun.
- 3 = Shotgun.
- 4 = Grenade Launcher.
- 5 = Rocket Launcher.
- 6 = Lightning Gun.
- 7 = Railgun.
- 8 = Plasma Pistol.
- 9 = BFG.
Parameters:
- 1: integer weapon, as listed above.
Responds:
- X where X is the ammunition on the weapon being switched to. It only responds if the weapon switched to is a valid weapon.
Reports:
- done once one the switch has begun.
- invalid_weapon if the entity does not have the weapon or the number provided was invalid.
- 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 sw 512 5"
- Bot replies: "rs sw 512 20"
- Bot replies: "cp sw 512 done"
- Bot switches to the rocket launcher during the game update phase.
Last modified 14 years ago
Last modified on Jun 16, 2011 1:09:29 PM