PDA

View Full Version : targetpassthrough main mission triggers for sub-missions?


Gromic
02-18-2012, 07:45 PM
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, 08:07 PM
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, 10: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.