hc_wolf
05-17-2012, 05:11 AM
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
Dictionary<AiGroundActorType,int> PointsforGroundTargets = new Dictionary<AiGroundActorType,int>()
{
{AiGroundActorType.House, 2},
{AiGroundActorType.Unknown, 2}
};
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?
1st I am creating a list of objects to destruct and points for destruction
Dictionary<AiGroundActorType,int> PointsforGroundTargets = new Dictionary<AiGroundActorType,int>()
{
{AiGroundActorType.House, 2},
{AiGroundActorType.Unknown, 2}
};
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?