Jump to content

Home

Module conditional script


Ferc Kast

Recommended Posts

I have a question about why the following script won't run for me. It did compile perfectly for me. I edited a_return371.nss to make that script; So, why won't it run? Or should I have modded another script to make it take me back to 301NARb, if that's the module I came from?

 

void main(){
   if(GetGlobalString("K_LAST_MODULE") == "301NARb") {
SetGlobalFadeOut(0.0, 0.0, 0.0, 0.0, 0.0);
AssignCommand(GetFirstPC(), StartNewModule("301NARb", "from_371", "", "", "", "", "", ""));
   }
   else if(GetGlobalString("K_LAST_MODULE") == "301NAR") {
SetGlobalFadeOut(0.0, 0.0, 0.0, 0.0, 0.0);
AssignCommand(GetFirstPC(), StartNewModule("301NAR", "from_371", "", "", "", "", "", ""));
   }
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...