
Сообщение от
naryv

Сообщение от
adonys
Do damage to a random part of a plane (not using the limited Switch construction, which only allows damage to the parts listed in it, therefore a limited number)?
i'll try answer tomorrow.
No, there is no such fuction

. We planed to brake plane parts not randomly, but according to situation

I'm still waiting for that code (only if you had something different in your mind than the way I've did it in the above code), please.

Сообщение от
naryv
hitLimb just damages plane part and cutLimb - cut the part away from plane.
Yeah, I knew that, but I couldn't make it work (I've tried with the AiAircraft.hitLimb(part.LimbNames.WingL0); and AiAircraft.cutLimb(part.LimbNames.WingL0);, but I couldn't managed it to work). Can you please tell my how?

Сообщение от
naryv
You can use getParameter function - it gives you big list of characteristics - position of control surfaces, gauges indication, health and so on. Type of plane afair something like "TypedName".
Question: Can you explain this
Код:
int personIndex = GamePlay.gpPlayer().PlacePrimary();
if (personIndex < 0)
personIndex = GamePlay.gpPlayer().PlaceSecondary();
AiPerson person = (GamePlay.gpPlayer().Place() as AiCart).Person(personIndex);
if (person.Health <= 0)
return;
if (Campaign != null) {
if (Campaign.battleSuccess != null)
return;
Campaign.battleSuccess = true;
}
GamePlay.gpHUDLogCenter("MISSION COMPLETE");
piece of code, please? it makes no real sense to me. IT's from the official gb campain and can be found in several missions at the end of the inherited OnActorDead function (for example in the "Stuka Intercept.cs" script). It looks like is checking to see if the player is still alive.. yet.. why check a secondary place (I assume PlaceSecondary it's a second seat, like the gunner in a Stuka), as the player is in a single seated aircraft, and why the as AiCart part, instead as AiAircraft? Please have mercy and try to enlighten me 
Regarding the "CustomSayToAirgroup" function, we need to can put text in mouth of existent actors (AiAircraft or AiCart), or general (for control tower/radar/etc. speaking).
A list of these characteristics would be wonderful, from where can I get the members of the getParameter class, please?
Thank you again for everything, you've been very kind, sir