EVENT TYPE GAMEMODE CHANGE

From Dragon Age Toolset Wiki
Revision as of 20:40, 30 July 2009 by BryanDerksen (Talk | contribs) (|sourcefile=script.ldf)

Jump to: navigation, search
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;
}