LazerPotatoe Posted September 15, 2009 Posted September 15, 2009 Greetings, does anyone know if it is possible to capture Ground Unit information via LUA? For example: - map zone where unit is - waypoints (type, position) - unit callsign - remaining ammo I've read the Eagle wiki, but so far it only talks about cockpit switches and weapon loadouts in the player vehicle. Thanks, LP modules: F5-E / A4-E / A-10A / AJS-37 / SA-342 / UH-1H / Ka-50 / Mi-8 / CA would buy: OH-58 /AH-64A / AH-1 / Sepecat Jaguar / F-111
LazerPotatoe Posted September 15, 2009 Author Posted September 15, 2009 Ok, I'm going to try these functions and see what I can do with them: LoGetObjectById() LoGetWorldObjects() LP modules: F5-E / A4-E / A-10A / AJS-37 / SA-342 / UH-1H / Ka-50 / Mi-8 / CA would buy: OH-58 /AH-64A / AH-1 / Sepecat Jaguar / F-111
LazerPotatoe Posted September 16, 2009 Author Posted September 16, 2009 Ok, so I made some progress last night. - with LoGetWorldObjects(), I can get the unitType, groupName, current position and heading; - I found a way to load the current mission data at startup. From there I can get the waypoints and trigger zones; - using the above, I can calculate proximity to waypoints and trigger zones; - I don't think I can access the real-time mission data, so I doubt I will get anything like remaining ammo or fuel levels; - I may be able to track deaths and remaining units in a group via debrief.log; Anyone follow where I am going with this stuff? LP modules: F5-E / A4-E / A-10A / AJS-37 / SA-342 / UH-1H / Ka-50 / Mi-8 / CA would buy: OH-58 /AH-64A / AH-1 / Sepecat Jaguar / F-111
CyBerkut Posted September 16, 2009 Posted September 16, 2009 I'm thinking "dynamic/persistent campaign". [sIGPIC][/sIGPIC] There's no place like 127.0.0.1
LazerPotatoe Posted September 16, 2009 Author Posted September 16, 2009 (edited) I'm thinking "dynamic/persistent campaign". While I have considered it in the past, it's just too big a project, especially since it is dependant on a mission file schema that can change dramatically from version to version. I'm actually looking at maybe trying to implement some realistic radio chatter for ground units. Edited September 16, 2009 by LazerPotatoe LP modules: F5-E / A4-E / A-10A / AJS-37 / SA-342 / UH-1H / Ka-50 / Mi-8 / CA would buy: OH-58 /AH-64A / AH-1 / Sepecat Jaguar / F-111
Recommended Posts