Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   Script Spawn? (http://forum.fulqrumpublishing.com/showthread.php?t=22923)

SEE 05-16-2011 08:21 AM

Script Spawn?
 
Can anyone provide information regards how to use the Script Spawning feature and the function of the script text box?

MadTommy 05-16-2011 10:31 AM

Quote:

Originally Posted by SEE (Post 283841)
Can anyone provide information regards how to use the Script Spawning feature and the function of the script text box?

Here is a thread about using it for a delayed spawn.. explains quite a bit.

http://forum.1cpublishing.eu/showthread.php?t=20995

SEE 05-16-2011 11:00 AM

Cheers Madtommy, that will get me started (maybe that thread should be moved here).

SEE 05-17-2011 08:41 AM

Passthrough and Time are working Ok as triggers to spawn airgroups but I am struggling with the following:-


1. Destruction of Ground Target or Ground Objects to trigger spawns. The targets/objects are recognsied in the menu but their destruction does not trigger the assigned Airgroup to spawn, (Script c enabled in AG properties)

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......

Ataros 05-17-2011 02:11 PM

Quote:

Originally Posted by SEE (Post 284313)
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.


All times are GMT. The time now is 02:47 PM.

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