Jump to content

Command center object is "broken" for some API calls - DCS/2.8.5.40170


Recommended Posts

Posted (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 by uri_ba
  • uri_ba changed the title to Command center object is "broken" for some API calls - DCS/2.8.5.40170
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...