![]() |
#20
|
|||
|
|||
![]()
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:
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; } } |
|
|