Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-13-2011, 11:54 AM
klem's Avatar
klem klem is offline
Approved Member
 
Join Date: Nov 2007
Posts: 1,653
Default Question on running Scripts for submissions

It sems that sub-missions can have their own scripts.

If I load such a sub-mission does the original script keep running or is it stopped by the new mission script.

And...

If it does keep running is there a way to stop it, perhaps using the new mission script??
__________________
klem
56 Squadron RAF "Firebirds"
http://firebirds.2ndtaf.org.uk/



ASUS Sabertooth X58 /i7 950 @ 4GHz / 6Gb DDR3 1600 CAS8 / EVGA GTX570 GPU 1.28Gb superclocked / Crucial 128Gb SSD SATA III 6Gb/s, 355Mb-215Mb Read-Write / 850W PSU
Windows 7 64 bit Home Premium / Samsung 22" 226BW @ 1680 x 1050 / TrackIR4 with TrackIR5 software / Saitek X52 Pro & Rudders
Reply With Quote
  #2  
Old 09-13-2011, 09:18 PM
II./JG1_Krupinski II./JG1_Krupinski is offline
Approved Member
 
Join Date: Oct 2007
Posts: 86
Default

Quote:
Originally Posted by klem View Post
It sems that sub-missions can have their own scripts.

If I load such a sub-mission does the original script keep running or is it stopped by the new mission script.

And...

If it does keep running is there a way to stop it, perhaps using the new mission script??
I may be wrong here so please someone step in and correct me

There is a property of the AMission object called, "MissionNumberListener" that when set to -1, that script will listen to all events of all missions loaded.

I assume that setting this property to the mission number you wish to listen to will isolate the calls.

I haven't messed with it, but I would try something like this.

1. In my main mission, OnBattleStarted set MissionNumberListener = 0. This would set this script to handle events of the main mission.

2. In my very first sub mission of say a flight of He111's flying to England to attack an airfield. OnBattleStarted set MissionNumberListener = 1. This would set the this script to handle the events of this sub mission.

I assume the actions associated with the He111's would be handled in the sub-mission.cs script. And that's because MissionNumberListener = 1.

I'd play around with the numbers, but I "think" that's how it's supposed to work with MissionNumberListener.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.