View Single Post
Old 11-03-13, 03:25 PM   #4
Minoslas
Grey Wolf
 
Join Date: Apr 2004
Location: Tenerife, Canary islands
Posts: 976
Downloads: 3
Uploads: 0
Default

http://forums.eagle.ru/showpost.php?...11&postcount=1
Quote:
The ASW Script adds script based submerged submarines and anti-submarine warfare equipment such as sonobuoys, dipping sonar, MAD, depth charges and torpedoes. For a more detailed introduction and discussion of the features look here:

ASW Training Course

I am posting the script here for everyone to build their own anti-submarine warfare missions. I gave extra care for easy adaption and integration into your own missions. The script is divided into the main script and a configuration script. Only the configuration script needs do be adjusted to the needs of your mission (amount of ASW aircraft, amount of submarines etc.). The options of the configuration script are hopefully self explaining. If the main script is adjusted in the future, you hopefully only need to exchange the main script without any readjustment needed of your own config script.

It is important that the config script is run before the main script.

The ASW Script comes with some additional sound samples. Extract the attached ASW_Script_Sounds.zip, then add the sound files into you .miz mission file. Several of the sounds come from the game Dangerous Waters, so thanks to Sonalysts.

Something important to remember when you add your own scripting to the mission. The sensor output screens utilize the trigger.action.outTextForGroup command and will occupy the text output 100% of the time when active. If you want to add your own text outputs, use the custom functions TextToAll() or TextToGroup(). These functions can display multiple text outputs simultaneously.

TextToAll(text string, duration number, priority number)
TextToGroup(groupID number, text string, duration number, priority number)

Priority is the order in which messages are displayed, with 1 at the top and higher numbers below. Priority 1 is used for the sensor output screens, so use 2 or higher for your own text output.


Have fun and I hope to see many new ASW missions soon
__________________
More News to the front.....

-------------------------
Commander 21squad Harpoon International Community site
http://www.21squad.com
Minoslas is offline   Reply With Quote