Ifgotweaponce

From EDukeWiki
Jump to: navigation, search

ifgotweaponce <number>

This seems to work along with addweapon in cooperative mode. Once addweapon command is used in an actor, ifgotweaponce will return a value of zero whenever used in an actor of the same picnum.

Example:

useractor notenemy FIRSTGUNSPRITE
  ifgotweaponce 0
    break
  addweapon PISTOL_WEAPON PISTOLAMOUNT
enda
Personal tools
Namespaces

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