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
  #3  
Old 11-13-2012, 08:32 AM
TEL79 TEL79 is offline
Registered Member
 
Join Date: Sep 2009
Posts: 14
Default

Quote:
Originally Posted by FG28_Kodiak View Post
First do you have set
MissionNumberListener = -1;
example:
Code:
    public override void OnBattleStarted()
    {
        base.OnBattleStarted();

        MissionNumberListener = -1;
    }
Second if you create an actor and you want a trigger like TGroupDestroyed attached to the actor you must create the trigger after the spawn of the actor.

Third i don't know how you use OnActorDead, but for me it works without a problem.

Code:
            public void ActorDead(int missionNumber, string shortName, AiActor actor, List<DamagerScore> damages)
            {
                if (actor is AiAircraft)
                {
                    // code for aircrafts
                }
                else if (actor is AiPerson)
                {
                    // code for pilot or gunner kills (if needed)
                }
                else if (actor is AiGroundActor)
                {
                    // code for destroyed groundactors
                }
            }
Thanks, I'll try the ActorDead approach later today. I don't know how to create a trigger in a script after the spawn, as I have so far created them using the GUI.
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 03:58 AM.


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