Addweapon: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
'''addweapon''' <weapon> <amount>
'''''addweapon''''' ''weapon'' ''amount''


Adds a weapon to the nearest player. <weapon> is the weapon's number, <amount> is the amount of ammo.  See [[addweaponvar]].
'''''addweapon''''' adds ''weapon'' with ''amount'' of ammo to the nearest player. See [[addweaponvar]].


If the player has the maximun amount of ammo, this command has and effect similar of [[break]] cenceling subsequent code.
If the player already has ''weapon'' with full ammo, execution of subsequent code is halted in a fashion similar to [[break]].
 
''weapon'' can be one of the following, taken from ''duke3d.h'':
 
    KNEE_WEAPON
    PISTOL_WEAPON
    SHOTGUN_WEAPON
    CHAINGUN_WEAPON
    RPG_WEAPON
    HANDBOMB_WEAPON
    SHRINKER_WEAPON
    DEVISTATOR_WEAPON
    TRIPBOMB_WEAPON
    FREEZE_WEAPON
    HANDREMOTE_WEAPON
    GROW_WEAPON


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Player manipulation]]
[[Category:Player manipulation]]

Revision as of 01:57, 9 November 2009

addweapon 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 break.

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

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