View Single Post
  #8  
Old 10-04-2011, 03:27 PM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Quote:
Originally Posted by SNAFU View Post
I don“t know if it was fixed in the Beta, but the action (spawn airgroup) of triggers was broken, some patches ago. So you have to use a script to link triggers and actions. I supposed you set the trigger and the action in the FMB.
That's what I've done. The info window reports that the group has spawned in my test, indicating that the script has executed, but alas no planes actually spawned

Here's the script I used, the trigger & the spawn airgroup (after 60s) actions are both named 'Dorniers'...

public override void OnTrigger(int missionNumber, string shortName, bool active)
{
base.OnTrigger(missionNumber, shortName, active);

if ("Dorniers".Equals(shortName) && active)
{
AiAction action = GamePlay.gpGetAction("Dorniers"); //same as YourTriggerName
GamePlay.gpLogServer(null, " German bomber group spawned ", new object[] { }); //Testmessage
if (action != null)
{
action.Do();
}
GamePlay.gpGetTrigger(shortName).Enable = false;
}
}
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
Reply With Quote