Osiris/API/IterateUsers

From Divinity Engine Wiki
Revision as of 13:08, 28 November 2017 by Tinkerer (talk | contribs)
Jump to: navigation, search
Full Definition(s)
  • call IterateUsers((STRING)_Event)
Description

Throws a UserEvent for each user in the game.

Notes
  • No special event is thrown after the last user has been iterated. You can use GetUserCount in advance to record the number of users and decrease it every time you get a user event, but keep in mind this creates a (very unlikely) race condition in case someone connects while the events are still firing.
See Also