Quote:
Originally Posted by WhiskeyBravo
Hi all,
I have almost zero knowledge of C# scripting but by examining the various examples found around these parts I've been able to analyse them and reverse engineer them somewhat to use them in my missions.
One thing I would like to do is to take parts from different scripts and merge them into a single script. However, my knowledge of the syntax in non-existent.
Can anybody give a brief outline on how to merge two or more scripts please?
And a big thanks to those out there who produce scripts for us, especially the ones who provide well commented code. It can make all the difference for noobs like me.
Thanks again for any help.
WB.
|
Your question raises an issue that I have canvased previously. There is no easy method to use self-contained scripts to perform specific tasks as components of a main mission. Calling different scripts on the fly from your mission using the GamePlay.gpLoadSectionFile or GamePlay.gpPostMissionLoad commands without having to merge different scripts into one main script. You should be able to build script library to perform specific tasks, & then be able to call those scripts from your mission.