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
  #1  
Old 05-17-2012, 05:11 AM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default Recognition for Destruction of a House

Hey guys; workingon a new mission and would like to recognise the destruction of nurtal houses on the map. Is it possible?

1st I am creating a list of objects to destruct and points for destruction

Code:
    Dictionary<AiGroundActorType,int> PointsforGroundTargets = new Dictionary<AiGroundActorType,int>()
    {       
        {AiGroundActorType.House, 2},
        {AiGroundActorType.Unknown, 2}
    };
Code:
I am using public override void OnActorDead(int missionNumber, string shortName, AiActor actor, List<DamagerScore> damages)

and applying points on damage if army is red or blue. But how do I appoint to nutral static objects?

if (actor.Army() == ArmyRed)


if (actor.Army() == ArmyBlue)
But the above is a problem because there are no hoses in FMB you can use that are Red toeam or Blue team.

So on destruction of units the two above are not recognised.

Is there any way of coding that if a house in a town that is not enemy (nutral) be recognised as destroyed and points awarded?
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals
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:49 PM.


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