Mindtwistah Posted June 21, 2007 Share Posted June 21, 2007 How can I active a script when I enter a module without changing the .GIT file. Is there any script, like: void main() { when enter module ("the module name") Executescript ("Myscriptname") } Link to comment Share on other sites More sharing options...
tk102 Posted June 21, 2007 Share Posted June 21, 2007 Actually you have the right idea, only backwards. Basically, you rename the old OnEnter .ncs file to something and compile your new custom script with the original OnEnter name. Then you call ExecuteScript on the old script at the end. This strategy for injecting a script into the OnEnter event is illustrated by Darth333 in post #3 of this thread. Link to comment Share on other sites More sharing options...
Mindtwistah Posted June 21, 2007 Author Share Posted June 21, 2007 Yes but if I replace the on enter script in Daviks estate the cutscene with Davik, Calo and Canderous will never launch. It would mess the game up. Link to comment Share on other sites More sharing options...
tk102 Posted June 21, 2007 Share Posted June 21, 2007 Your script would execute the original script. The original script, k_ptar_08aa_en.ncs, you will extract and rename to something like tar_08aa_en_old.ncs. Then you will name your script k_ptar_08aa_en and on the last line of your script before the closing brace, put the following: ExecuteScript("tar_08aa_en_old"); Link to comment Share on other sites More sharing options...
Mindtwistah Posted June 21, 2007 Author Share Posted June 21, 2007 aha, now I understand executescript to. Thanks tk. EDIT: Ignore my next post that I've just deleted. It worked. You forgot to put in OBJECT_SELF tk Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.