Addweapon

From EDukeWiki
Jump to: navigation, search

addweapon <weapon> <amount>
addweaponvar <weapon> <amount>

addweapon adds weapon with amount of ammo to the nearest player. See addweaponvar.

If the player already has weapon with full ammo, execution of subsequent code is halted in a fashion similar to return.

weapon can be one of the following, taken from duke3d.h and DEFS.CON:

   KNEE_WEAPON
   PISTOL_WEAPON
   SHOTGUN_WEAPON
   CHAINGUN_WEAPON
   RPG_WEAPON
   HANDBOMB_WEAPON
   SHRINKER_WEAPON
   DEVISTATOR_WEAPON
   TRIPBOMB_WEAPON
   FREEZE_WEAPON
   HANDREMOTE_WEAPON
   GROW_WEAPON

Commands with an additional "var" suffix take gamevars rather than constants or defined labels for their inputs.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Buy Duke Nukem 3D from GOG.com!