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 02-18-2012, 07:45 PM
Gromic's Avatar
Gromic Gromic is offline
Approved Member
 
Join Date: Aug 2010
Posts: 77
Default targetpassthrough main mission triggers for sub-missions?

Hi guys,

Is it possible to have triggers listen to sub-missions? I'll try to explain as best I can (damned beer).

Example.
I have a main mission that triggers a sub-mission after a specific time (works fine). In said main mission I have also included a trigger (targetpassthrough armyair blue). This posts a message to the screen once a blue armyair object flys into the trigger area. It works fine if the armyair blue passing through the radius set is flown from the main mission itself.

I'd like to have that same message also fire if an armyair blue ai object, that is called from a sub-mission, flys through the given radius that is set in the main mission.

Is this possible or have I had one to many?

Cheers

Gromic
__________________
I5-750 @ 3,8GHz / MSI P55-GD65 / MSI GTX570 Twin Frozr II / 4x2GB G.Skill 1600MHz / Corsair TX650 PSU / RAID 0 2x640GB WD Black
W7 Pro x64 SP1 / MS FFB2 +Saitek X45 / Freetrack + NP Clip Pro + PS3 Eye / Samsung BX2450 24" HDMI LED
Reply With Quote
  #2  
Old 02-18-2012, 08:07 PM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default

Code:
public override void OnBattleStarted()
{
    base.OnBattleStarted();

    MissionNumberListener = -1;
}
If you set MissionNumberListener = -1; in the the main mission script the OnTrigger function of the main script is also called for trigger that are from a sub mission.

Maybe points you in the right direction
Reply With Quote
  #3  
Old 02-19-2012, 10:06 PM
Smokeynz Smokeynz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 106
Default

yes

about to post something that allows that, although targeted at player passthrough using the AirArmy passthrough trigger in mission
some testing to be done.

The way I am (trying) allows for different actions to ai and player as opposed to just player or just ai.
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 02:57 PM.


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