Ifgotweaponce: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Helixhorned (talk | contribs) No edit summary |
||
(6 intermediate revisions by 5 users not shown) | |||
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, [[ifgotweaponce]] will return a value of zero whenever used in an actor of the same picnum.<br> | |||
The test always fails (i.e. "returns false") in single player mode. | |||
Example: | |||
useractor notenemy FIRSTGUNSPRITE | |||
ifgotweaponce 0 | |||
break | |||
addweapon PISTOL_WEAPON PISTOLAMOUNT | |||
enda | |||
[[Category:Duke3D 1.3/1.5 commands]] | |||
[[Category:Player manipulation]] | |||
[[Category:If conditions]] |
Latest revision as of 13:26, 2 December 2012
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