Ifrespawn

From EDukeWiki
Revision as of 02:40, 10 December 2009 by Fox (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ifrespawn { do something } else { do something else }

Checks if a certain respawn mode is enabled. Monsters (hard-coded actors and useractors check RESPAWN_MONSTERS, inventory items (hard-coded) check RESPAWN_INVENTORY and everything else checks RESPAWN_ITEMS.

By default, inventory items always respawn in multiplayer - cooperative or dukematch (no spawn) - although they are assigned as such through hard-coded actors. If you desire to add your own Inventory icon, you will need to check RESPAWN_INVENTORY gamevar instead of using ifrespawn command.

Retrieved from "https://wiki.eduke32.com/w/index.php?title=Ifrespawn&oldid=8776"