Multimode: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
Line 3: Line 3:


'''multimode''' stores the total of player in the game, while [[numplayers]] stores only non-bot players.
'''multimode''' stores the total of player in the game, while [[numplayers]] stores only non-bot players.
It can also be used for when making a loop through all players. Example:
appendevent EVENT_WORLD
  for My_Player range MULTIMODE
  {
    [...]
  }
endevent


[[Category:Userdef structure members]]
[[Category:Userdef structure members]]

Revision as of 05:13, 19 February 2020

This store the number of players in the game. In singleplayer, it is set to 1.

multimode stores the total of player in the game, while numplayers stores only non-bot players.

It can also be used for when making a loop through all players. Example:

appendevent EVENT_WORLD
  for My_Player range MULTIMODE
  {
    [...]
  }
endevent