Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   Recognition for Destruction of a House (http://forum.fulqrumpublishing.com/showthread.php?t=32185)

hc_wolf 05-17-2012 05:11 AM

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?

Smokeynz 05-17-2012 07:47 AM

Back in the old days o fIL246 & FBD2 we used wagons(there was 10 types) or side specific objects as vehicles. These we placed within the building(that was destructable).

It was a reasonbly effective work around for the same problem.

FG28_Kodiak 05-17-2012 08:00 AM

Yepp Buildings are not actors, so you must place a unique actor in there. Or you use TGroundDestroyed Trigger with static objects in the building.


All times are GMT. The time now is 10:37 PM.

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