Page 1 of 1

[P3Dv5] Helicopter Spawning

Posted: Sun May 03, 2020 1:23 pm
by Kaiii3
Hey,

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);
The engine is off and the helicopter is falling from down. Injecting Airplanes is working fine.

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);
creats a parked helicopter with running engines.

Please fix this problem for spawning helicopters in the air :)