Thread: Script Spawn?
View Single Post
  #4  
Old 05-17-2011, 02:11 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Quote:
Originally Posted by SEE View Post
2. From what I can see only Airgroups are available in the dropdown Action menu. Has anyon manged to get Ground units (armour) to spawn?

Many thanks......
Not implemented in the FMB atm, but you can do it with a script somehow.
Code:
using System;
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);
        if ("trigger".Equals(shortName))
        {
            GamePlay.gpPostMissionLoad("path to your mission files");
            GamePlay.gpGetTrigger(shortName).Enable = true;
        }

    }
}
"trigger" is the name of your trigger in FMB I guess.
The script loads a submission with whatever units you want into your current mission based on trigger. I did not try it yet.

Last edited by Ataros; 05-17-2011 at 02:20 PM.
Reply With Quote