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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 05-27-2012, 01:20 PM
Freyah's Avatar
Freyah Freyah is offline
Approved Member
 
Join Date: May 2012
Posts: 8
Default

@Kodiak, I'm looking at the script you posted to nullify multiple spawn events:
Quote:
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;
}
}
If I have at trigger to spawn 109's (called "109") and only want them to spawn once, no matter how many times I fly through the trigger zone, should It be done with your script by just putting "109" where ever (shortname) appears? Do I just write for example - public override void OnTrigger(int missionNumber, string 109, bool active) etc or is there something to be entered for missionNumber and bool active? (possibly Amission too?) Also is it possible to do this for several triggers in one mission by just repeating the script in its entirety one after another?

Hope its no trouble to ask, I'm just learning the ropes here....

cheers
Freyah
Reply With Quote
 


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 10:55 PM.


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