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 01-11-2012, 08:33 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

At the moment i can not check your mission (not at my gaming PC), will take a look at it at evening.


but you get the current trigger state with
GamePlay.gpGetTrigger("Triggername").Active
true if active, false if disabled.

you can enable the trigger with:
GamePlay.gpGetTrigger("Triggername").Enable = true;
and disable with
GamePlay.gpGetTrigger("Triggername").Enable = false;

if ("de1".Equals(shortName) && active)
btw. you use tpassthru triggers, so active is true if you enter the area and false if you leave the area.
Reply With Quote
  #2  
Old 01-11-2012, 08:54 AM
Smokeynz Smokeynz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 106
Default

Ok, I'll let you have a play around see what you can come up with.

Some notes:

I have avoided using trigger enable true/false , my intension is leave triggers live at all times and let the random timer switch define time out period for trigger, hence the test message "trigger already in action".

Also I have found if you have "&& active" in the,
if ("de1".Equals(shortName) && active)
the second "leaving trigger area" trigger is avoided. I note some ppl have reported double triggers, this happened when I just had,
if ("de1".Equals(shortName))

Yes I am using pass thru triggers for player in mis, then check for army in script(they need to add player and army combination option)
This is so triggers activate for players and side only, thus Ai won't cause triggers to respond.
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:33 PM.


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