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-15-2012, 09:00 PM
Smokeynz Smokeynz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 106
Default Has anyone got these to work?

I have been trying (unsuccesfully) to count stuff with respect to resource type management.I have been trying to use the internal codes to trigger counts but cannot get the following to register they are working even with simple counts each time they (should) activate.


Just wondering if anyone has got these too work yet?

Code:
public virtual void OnActorDestroyed(int missionNumber, string shortName, AiActor actor)
    {
        base.OnActorDestroyed(missionNumber, shortName, actor);
        if (actor != null)
        {
            if (actor is AiAircraft)
            {
                ActorsDestroyedLast = ActorsDestroyed;
                ActorsDestroyed++;
                ActorResources(actor);
            }
        }
    }


    public virtual void OnActorDead(int missionNumber, string shortName, AiActor actor, System.Collections.Generic.List<DamagerScore> damages)
    {
        base.OnActorDead(missionNumber, shortName, actor, damages);
        if (actor != null)
        {
            if (actor is AiAircraft)
            {
                ActorsDeadLast = ActorsDead;
                ActorsDead++;
                ActorResources(actor);
            }
        }
    }
   
    
    public virtual void OnAircraftLanded(int missionNumber, string shortName, AiAircraft aircraft)
    {
        base.OnAircraftLanded(missionNumber, shortName, aircraft);
        if (aircraft != null)
        {
            AircraftLandedLast = AircraftLanded;
            AircraftLanded++;
            AircraftResources(aircraft);
        }
    }
   
    public virtual void OnAircraftCrashLanded(int missionNumber, string shortName, AiAircraft aircraft)
    {
        base.OnAircraftCrashLanded(missionNumber, shortName, aircraft);
        if (aircraft != null)
        {
            AircraftCrashedLast = AircraftCrashed;
            AircraftCrashed++;
            AircraftResources(aircraft);
        }
    } 
   

    public virtual void OnAircraftKilled(int missionNumber, string shortName, AiAircraft aircraft)
    {
        base.OnAircraftKilled(missionNumber, shortName, aircraft);
        if (aircraft != null)
        {
            AircraftKilledLast = AircraftKilled;
            AircraftKilled++;
            AircraftResources(aircraft);
        }   
    }
Reply With Quote
  #2  
Old 05-15-2012, 09:24 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Äh you should override the virtual methods:

public override void ....
Reply With Quote
  #3  
Old 05-15-2012, 09:49 PM
Smokeynz Smokeynz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 106
Default

ahhh ahhhhh
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 04:50 AM.


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