Anakin,
Yes that is the function that plays cutscenes from utility.h .....
However, my question was if you could find out which cutscene is playing from:
EVENT_TYPE_GAMEMODE_CHANGE
Look at the following code. If I could get the cutscene CUTSCENE_SET_PLOT & CUTSCENE_SET_PLOT_FLAG I could effectively know which cutscene is playing.
1. Are we able to access the core game resource module from our own module?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.
if (nNewGameMode == 5)
{
// How do I find out the name of the cutscene?
}
if (nOldGameMode == 5)
{
// How do I find out the name of the cutscene?
//==================================================
//== FROM CS_LOADCUTSCENE .........................
//==================================================
object oModule = GetModule();
GetLocalString(oModule, CUTSCENE_SET_PLOT, strPlot);
GetLocalInt(oModule, CUTSCENE_SET_PLOT_FLAG, nPlotFlag);
//================================================== }
break;
}
Modifié par JackFuzz, 23 janvier 2010 - 10:30 .