Quote:
Originally Posted by machoo
I read somewhere on here that you can make up info boxs and it will tell you what part of the enemy part you are damaging. How do you do this?
|
You can use a script
like
Code:
using System;
using maddox.game;
using maddox.game.world;
public class Mission : maddox.game.AMission
{
public override void OnAircraftDamaged(int missionNumber, string shortName, AiAircraft Aircraft, AiDamageInitiator DamageFrom, part.NamedDamageTypes WhatDamaged)
{
base.OnAircraftDamaged(missionNumber, shortName, Aircraft, DamageFrom, WhatDamaged);
if (DamageFrom.Player != null )
{
GamePlay.gpLogServer (null, "{0} hits {1} : {2} \n", new object [] {DamageFrom.Player, shortName, WhatDamaged});//Test
}
}
}
The script shows the damaged part in the chat bar and in console (or serverlog if enabled).
May be usefull for training missions.
Sample Mission in Attach Bf109 against single Anson, it's a single Mission so copy the files to "\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Single"