Hey Guys,
I'm sitting now about 2 days at a stretch on lua-scripting, and I'm finally at a point where I've nearly given up hope.
I try to export the longi- and latitudal position of the player aircraft. After around 8 hours and two tacview-export-lua-examinations, I figured out it must be something with the CurrentObjectData-table(?). But whenever I try to get data from this table - for example, with the simple expression 'io.write(CurrentObjectData.Heading)', I end up with an error in the log "attempt to index global `CurrentObjectData' (a nil value)". Why the hell is this a nul value? How is that table structured? And - how do I access tables in the export script? I tried many ways, for example like I would access an indexed array (CurrentObjectData.Heading[0] and things like that), but I ended up running in circles. Is there any documentation available to the Lock On-Export-tables, or how I can access them?
Please!
Tired greetings from Germany,
Hag