![]() |
#1
|
|||
|
|||
![]()
Can anyone tell me if the I_MagneticCompass paramater type has been broken? My script execution is stopping at this line without an error being thrown, which is very puzzling. Oh, and the aircraft is not null & is an AiAircraft.
Code:
if (aircraft != null && aircraft is AiAircraft) { Console.WriteLine("This line executes OK"); double heading = aircraft.getParameter(part.ParameterTypes.I_MagneticCompass, 0); Console.WriteLine("This line fails to execute"); }
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE Last edited by salmo; 11-28-2012 at 07:42 AM. |
#2
|
||||
|
||||
![]()
Hi Salmo, long time no speak (since USL days!)
We need to be talking to you mate, I believe Farber PM'd you, but you also contacted Moggel. Perhaps at SOW campaign time? Cheers bud |
#3
|
|||
|
|||
![]()
I'd say it's very much broken.
trying this: Quote:
I guess the function fails to bring the plane with itself as that seems to be the reported null value. (tried in Hurri and spit mkII btw) Edit: tried different integers just in case. no success. Edit2: btw, must be the compass that equals null - ja bet it is.
__________________
![]() Last edited by theOden; 11-28-2012 at 05:40 PM. |
![]() |
|
|