Difference between revisions of "EVENT TYPE GAMEMODE CHANGE"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (|sourcefile=script.ldf)
m (update template)
Line 4: Line 4:
 
|from=
 
|from=
 
|to= [[module]]
 
|to= [[module]]
 +
|tocategory1=module
 +
|sortkey=GAMEMODE_CHANGE
 
|int0name = nNewGameMode
 
|int0name = nNewGameMode
 
|int0desc = New Game Mode (GM_* constant)
 
|int0desc = New Game Mode (GM_* constant)
Line 9: Line 11:
 
|int1desc = Old Game Mode (GM_* constant)
 
|int1desc = Old Game Mode (GM_* constant)
 
}}
 
}}
 
[[Category:Event types|GAMEMODE_CHANGE]]
 

Revision as of 17:03, 6 August 2009

Source:
script.ldf
Sent when:
Game Mode Switch
Sent from:
Sent to:
module
Parameters:
  • Integer 0: New Game Mode (GM_* constant)
  • Integer 1: Old Game Mode (GM_* constant)

Usage

case EVENT_TYPE_GAMEMODE_CHANGE:
{
int nNewGameMode = GetEventInteger(ev, 0); // New Game Mode (GM_* constant)
int nOldGameMode = GetEventInteger(ev, 1); // Old Game Mode (GM_* constant)

// insert event-handling code here

break;
}