Ifgotweaponce - EDukeWiki

# Ifgotweaponce

From EDukeWiki

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.
The test always fails (i.e. "returns false") in single player mode.

Example:

    useractor notenemy FIRSTGUNSPRITE
      ifgotweaponce 0
        break
      addweapon PISTOL_WEAPON PISTOLAMOUNT
    enda

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Ifgotweaponce&oldid=11376"
Categories:

- Duke3D 1.3/1.5 commands
- Player manipulation
- If conditions