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
  #17  
Old 10-15-2011, 02:49 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Quote:
Originally Posted by David198502 View Post
thx Kodiak, really kind of you!and finally this works!
-if i understand it correctly, if i shoot the hurri, another one spawns, and i could repeat that to infinity???
i ask this, cause so far i tried the mission several times, and after i shot down the 4th hurri, no plane will spawn anymore....
Hm normaly yes, seems i misinterpreted your posting.

Quote:
i also expierence many game crashes, i think mainly when im near the spawning aera..
Could also be the steppe map, must try this but on my computer i didn't have a crash. May be its better to spawn an other group of planes not the same again and again.

Quote:
-can i just increase the number of the hurris without changing the script?i did and made a flight of six hurris, and after i shot down the 4th, the message "New Enemy spawned!" appeared, but unfortunately my game crashed.
It depens which aircraft you shot down. BoB_RAF_F_FatCat_Early.000 is the leading Airplane. You can change the "actor.Name().Contains("BoB_RAF_F_FatCat_Early.000 ")" in
actor.Name().Contains("BoB_RAF_F_FatCat_Early") so every plane in the goup counted.

Quote:
-how do i determine the name of the plane???
The easy way with external view, you have the option "show object name" if enabled the game shows you the name you need.

Quote:
-whats the planecount you mentioned to improve the mission???
At the moment a new plane spawns after the leader plane is shot down. But
you can improve the script. For example:
Code:
using System;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;


public class Mission : AMission
{
    int planecounter = 0;

    
    public override void OnActorDead(int missionNumber, string shortName, AiActor actor, List<DamagerScore> damages)
    {
        base.OnActorDead(missionNumber, shortName, actor, damages);

        AiAction MakeNewAircraft = GamePlay.gpGetAction("SpawnAircraft");

        if (actor != null && MakeNewAircraft != null)
        {
            if (actor.Name().Contains("BoB_RAF_F_FatCat_Early"))
            {
                planecounter++;

                if (planecounter >= 2)
                {
                    MakeNewAircraft.Do();
                    GamePlay.gpHUDLogCenter("New Enemy spawned!");
                }
            }
        }
    }

}
Now you must shot down two planes of the group, before other spawns.


Quote:
i know i have many questions and im really greatful for your help.
No problem.

Last edited by FG28_Kodiak; 10-15-2011 at 02:58 PM.
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:24 PM.


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