Difference between revisions of "GetGameMode"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(see also)
m (Updating link)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Generated}}
 
 
{{dafunction
 
{{dafunction
|name=GetGameMode
+
|name         = GetGameMode
|brief=This function gets the current game mode.
+
|brief       = This function gets the current game mode.
|returntype=int
+
|returntype   = int
|returndesc=a GM_* var on success, GM_INVALID on error.
+
|returndesc   = a [[GM_*]] constant on success, or [[GM_*|GM_INVALID]] on error.
|sourcefile=script.ldf
+
|sourcefile   = script.ldf
|sourcemodule=
+
|sourcemodule =
 
}}
 
}}
  
Line 21: Line 20:
 
== See also ==
 
== See also ==
 
<!-- This section contains links to articles, functions or constant groups. -->
 
<!-- This section contains links to articles, functions or constant groups. -->
[[SetGameMode]], [[GM*]]
+
[[SetGameMode]], [[GM_*]]
 +
 
 
[[Category: Game modes]]
 
[[Category: Game modes]]

Latest revision as of 19:57, 3 August 2011

This function gets the current game mode.

int GetGameMode(
);
Parameters:
None
Returns:

a GM_* constant on success, or GM_INVALID on error.

Source:

script.ldf

Description

This function returns the current game mode for a specific player. A game mode can be combat, explore, dialog etc'


See also

SetGameMode, GM_*