first thanks for fixing the Registration Bug on the Helicopter Spawning. But that was sadly not the only bug...
When injecting an Helicopter using:
Code: Select all
Init.Altitude = plnfile.Altitide;
Init.Latitude = startLocation.getLAT();
Init.Longitude = startLocation.getLON();
Init.Pitch = 0.0;
Init.Bank = 0.0;
Init.Heading = heading;
Init.OnGround = 0;
Init.Airspeed = 90;
this.SimConnect.AICreateNonATCAircraft(aiaircraft.Registration.Variation.Title, aiaircraft.Registration.Registration, Init, RequestIdentifier.AddTraffic);
Injecting an "parked" helicopter with this code:
Code: Select all
Init.Altitude = freePad.Location.getELEV();
Init.Latitude = freePad.Location.getLAT();
Init.Longitude = freePad.Location.getLON();
Init.Pitch = 0.0;
Init.Bank = 0.0;
Init.Heading = freePad.Heading;
Init.OnGround = 1;
Init.Airspeed = 0;
this.SimConnect.AICreateNonATCAircraft(aiaircraft.Registration.Variation.Title, aiaircraft.Registration.Registration, Init, RequestIdentifier.AddTraffic);
Please fix this problem for spawning helicopters in the air :)