EVENT TYPE GAMEMODE CHANGE

From Dragon Age Toolset Wiki
Revision as of 17:03, 6 August 2009 by BryanDerksen (Talk | contribs) (update template)

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;
}