Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2011, 09:21 AM
SEE SEE is offline
Approved Member
 
Join Date: Oct 2009
Posts: 1,678
Default Script Spawn?

Can anyone provide information regards how to use the Script Spawning feature and the function of the script text box?
Reply With Quote
  #2  
Old 05-16-2011, 11:31 AM
MadTommy MadTommy is offline
Approved Member
 
Join Date: Jan 2011
Posts: 493
Default

Quote:
Originally Posted by SEE View Post
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
Reply With Quote
  #3  
Old 05-16-2011, 12:00 PM
SEE SEE is offline
Approved Member
 
Join Date: Oct 2009
Posts: 1,678
Default

Cheers Madtommy, that will get me started (maybe that thread should be moved here).
Reply With Quote
  #4  
Old 05-17-2011, 09:41 AM
SEE SEE is offline
Approved Member
 
Join Date: Oct 2009
Posts: 1,678
Default

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......
Reply With Quote
  #5  
Old 05-17-2011, 03: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 03:20 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:51 PM.


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