Vakarian Posted December 31, 2021 Posted December 31, 2021 I'm making a little app to track my flight time and I noticed than when I suffer some battle damage and manage to land the aircraft (fixed wing or a rotary) in an open field DCS Scripting engine doesn't register is as a landing as no "land" event has been fired. This ofc extends to any landing that's not Airbase, Ship or a FARP and is most noticeable in helicopters as you can land them practically anywhere. In the current documentation, land event has following attributes { id = 4, time = Time, initiator = Unit, place = Object, subPlace = 0 } I guess that the problem is that the "place" is not an object when you land on an open field, but it would be really nice to get this event fired even if the "place" object would be nil or something like that. It is quite sad that I can't track my flight time in this regard as I have my takeoff time, but no landing time as DCS hasn't registered I ever landed
cfrag Posted January 10, 2022 Posted January 10, 2022 (edited) On 12/31/2021 at 10:20 AM, Vakarian said: land the aircraft (fixed wing or a rotary) in an open field DCS Scripting engine doesn't register is as a landing as no "land" event has been fired I can't speak for fixed-wing, but for helicopters, the 4 event does fire when landed outside of an airfield or FARP: I suspect the same also happens with the Harrier (can't fly it well enough to vertical-land, so no way I can give you a positive on this ). I've included a tiny mission where you can add your own planes to test various events for yourself. demo - Event Monitor.miz Edited January 10, 2022 by cfrag
Vakarian Posted January 10, 2022 Author Posted January 10, 2022 Thanks for the miz file, I will test this out later tonight when I get home. I don't remember from the top of my head how large is that circle of influence around the airfield, it might be that you are still inside so you got the land event.
cfrag Posted January 10, 2022 Posted January 10, 2022 (edited) Well, it should be 2km, but you can simply position the Huey somewhere in the outback (take off from ground), take off and put it down again to see what events fire. I'll try that later today if you don't get to it before me Edited January 10, 2022 by cfrag
Vakarian Posted January 10, 2022 Author Posted January 10, 2022 @cfrag Thanks a lot man, you helped me find a bug in my solution... It had actually worked all along, and I have been blind in the script I've been working on. So there is no point for this topic, error was as it is most of the times, in front of the screen
Recommended Posts