PDA

View Full Version : [Request to dev's] Several scripts in mission


salmo
10-11-2011, 12:22 AM
Having got the hang of basic scripting, I'm now up to incorporating several different scripts into one mission. Spawn sub-mission; ambulance/fuel truck at airfields, despawn AI's after landing. These script have calls in common to some methods, especially the ontickgame method. To do this, I need to copy out only the relevant code for that method & paste into the method section of the master script (which is a PITA. here's my idea for further enhancedment:

1. Have a directory dialog in the script window of the mission brief.
2. Allow scripts to picked from the dialog & 'automatically' loaded into the script window,
3. on auto-pasting a script, have an in-built algorithm that will ...
a. remove multiple calls to the same core component
b. parse out script text for each method & paste into any existing method text section