View Single Post
  #8  
Old 12-04-2011, 10:15 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Corrected:
By spawning Airgroups you should activate "only Script spawn" in their options.

You use passthroughs-Triggers, there is a problem the are activated two times on enter and on leave. To avoid the second activation, you should deaktivate the trigger via script.
Sometimes if a Group is not spawning, it helps to select it again in the action-options.


So i've added a little script:
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;


public class Mission : AMission
{

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

        AiAction Action = GamePlay.gpGetAction(shortName);

        if (Action != null)
            Action.Do();
        
        GamePlay.gpGetTrigger(shortName).Enable = false;
    }
}
Tested the Mission, now it should work.
Attached Files
File Type: zip Spawning.zip (2.1 KB, 15 views)

Last edited by FG28_Kodiak; 12-04-2011 at 10:18 AM.
Reply With Quote