So then I added a void main and it compiled just fine.
But in game when cutscenes load the PrintToLog never writes to the log file. I 'm wondering if my utility_h is not working and the game is using the original.
void CS_LoadCutsceneWithReplacements(resource rCutscene,
string [] arActors,
object [] arReplacements,
string strPlot = "",
int nPlotFlag = -1,
string sTalkSpeaker = "")
{
object oModule = GetModule();
SetLocalString(oModule, CUTSCENE_SET_PLOT, strPlot);
SetLocalInt(oModule, CUTSCENE_SET_PLOT_FLAG, nPlotFlag);
SetLocalString(oModule, CUTSCENE_TALK_SPEAKER, sTalkSpeaker);
[b]PrintToLog("CUTSCENE FIRE:" + ResourceToString(rCutscene));[/b]
LoadCutscene(rCutscene, OBJECT_INVALID, TRUE, arActors, arReplacements, TRUE);
}





Retour en haut






