Ifgotweaponce: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Typo: ifgotweapononce -> ifgotweaponce
Line 1: Line 1:
'''ifgotweaponce''' <number>
'''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.
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:
Example:

Revision as of 17:36, 2 April 2010

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