Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   targetpassthrough main mission triggers for sub-missions? (http://forum.fulqrumpublishing.com/showthread.php?t=29829)

Gromic 02-18-2012 08:45 PM

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

41Sqn_Banks 02-18-2012 09:07 PM

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 :)

Smokeynz 02-19-2012 11:06 PM

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.


All times are GMT. The time now is 01:11 PM.

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