Ifrespawn: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
 
Line 1: Line 1:
'''ifrespawn''' { do something } else { do something else }
'''ifrespawn''' { do something } else { do something else }


Checks if a certain respawn mode is enabled. Monsters check ud.respawn_monsters, inventory items check ud.respawn_inventory and everything else checks ud.respawn_items.
Checks if a certain respawn mode is enabled. Monsters (hard-coded [[actor]]s and [[useractor]]s 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.


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]
[[Category:If conditions]]
[[Category:If conditions]]

Latest revision as of 02:40, 10 December 2009

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.