Ifgotweaponce

From EDukeWiki
Revision as of 09:43, 17 October 2009 by Fox (talk | contribs)
Jump to navigation Jump to search

ifgotweaponce <number>

This seems to work along with addweapon in cooperative mode. Once addweapon command is used in an actor, ifgotweapononce 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