Osiris/API/GameModeStarted: Difference between revisions
Jump to navigation
Jump to search
(Documented GameModeStarted) |
mNo edit summary |
||
Line 10: | Line 10: | ||
* '''_IsEditorMode''': '''1''' if the game is running in the editor, '''0''' if not. | * '''_IsEditorMode''': '''1''' if the game is running in the editor, '''0''' if not. | ||
===== Notes ===== | ===== Notes ===== | ||
* This even gets thrown right after the [[Osiris/API/GameEventSet|GameEventSet]] event. | * This even gets thrown right after the [[Osiris/API/GameEventSet|GameEventSet]]("'''''_GameStarted'''''") event. | ||
* At this point, no level or objects have been loaded yet, nor have any [[Osiris/API/CharacterGetReservedUserID|users]] been added to the game. Hence, do not reference any objects nor perform any calls that refer to players or users at this point. | * At this point, no level or objects have been loaded yet, nor have any [[Osiris/API/CharacterGetReservedUserID|users]] been added to the game. Hence, do not reference any objects nor perform any calls that refer to players or users at this point. | ||
===== See Also ===== | ===== See Also ===== |
Revision as of 11:45, 30 November 2017
Full Definition(s)
- event GameModeStarted((STRING)_GameMode, (INTEGER)_IsEditorMode)
Description
This is the second event that gets thrown when a new game is started.
Parameters
- _GameMode: The kind of game that was started. Possible values are:
- Campaign: a regular adventure (like the main DOS2 game)
- GameMaster: a game master session
- Arena: an arena fight
- _IsEditorMode: 1 if the game is running in the editor, 0 if not.
Notes
- This even gets thrown right after the GameEventSet("_GameStarted") event.
- At this point, no level or objects have been loaded yet, nor have any users been added to the game. Hence, do not reference any objects nor perform any calls that refer to players or users at this point.