uri_ba Posted May 21, 2023 Posted May 21, 2023 (edited) In the DCS DB the type name for command center object is `.Command Center` (note leading dot) when calling for example local command = StaticObject.getByName('COMMAND_CENTER') env.info("Height of command center is: " .. command:getDesc()["box"]["y"]) you get back 2023-05-21 06:04:59.778 ERROR GRAPHICSVISTA (Main): Can't open model .Command Center. 2023-05-21 06:04:59.779 ERROR SCRIPTING (Main): Mission script error: [string "test.lua"]:266: attempt to index field 'box' (a nil value) Edited May 21, 2023 by uri_ba Creator of Hound ELINT script My pit building blog Few DIY projects on Github: DIY Cougar throttle Standalone USB controller | DIY FCC3 Standalone USB Controller
Recommended Posts