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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #20  
Old 09-26-2011, 01:54 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

500 is trigger radius, not airfield.

TPassThrough 3 - is type of trigger, 3 is for ground units pass through.

1 or 2 is army (red/blue)

For airgroup passthrough the type of trigger will be different iirc. If you place various triggers in FMB and then save and open the mission file in notepad you will see how different triggers are recorded into a mission file: name of trigger type of trigger side coordinates radius. E.g.
Code:
[Trigger]
  110_down TGroupDestroyed BoB_LW_LG2_I.01 49
  bauf_down TGroupDestroyed BoB_RAF_F_FatCat_Early.01 46
  blu_bomb1 TPassThrough 1 BoB_RAF_B_218Sqn.07 275948 207553 2800
  bauf_up TPassThrough 3 1 271200 153942 300
  110_up TPassThrough 3 1 269976 153045 300
  red_bomb1 TPassThrough 3 1 270836 152088 300

strs[0] + " " + strs[1] - coordinates of the frontline marker parsed from the main mission file earlier.

Quote:
Originally Posted by Ataros View Post
Then script writes triggers into this file at the locations of frontline markers placed in the original mission manually.
Then in onTrigger method you check if the trigger is active, e.g.
Code:
    public override void OnTrigger(int missionNumber, string shortName, bool active) 
    {
       base.OnTrigger(missionNumber, shortName, active); 

          if ("your_trigger_name".Equals(shortName) && active) 
          { 
                // optional if you have an action set in the mission file
                AiAction action = GamePlay.gpGetAction("your_action_name");
                if (action != null)
                {
                     action.Do();
                }
                // include other operations here, e.g. loading submissions
                GamePlay.gpHUDLogCenter("your onscreen message");      
                GamePlay.gpGetTrigger(shortName).Enable = false;            
          }
    }
Reply With Quote
 


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 12:38 AM.


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