Ifgotweaponce

From EDukeWiki
Revision as of 18:36, 2 April 2010 by 124.171.238.101 (talk) (Typo: ifgotweapononce -> ifgotweaponce)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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