Code: Select all
local b = ScenEdit_QueryDB('submarine',554)
print(b); -- returns nil
b = ScenEdit_QueryDB('ship',3100)
print(b); -- returns nil
b = ScenEdit_QueryDB('aircraft',333)
print(b); -- returns nil
b = ScenEdit_QueryDB('facility',2416)
print(b); -- return nil
b = ScenEdit_QueryDB('satellite',143)
print(b); -- returns nil
b = ScenEdit_QueryDB('sensor',651)
print(b); -- works but returns nothing useful
b = ScenEdit_QueryDB('mount',2302)
print(b); -- works bus returns nothing useful
b = ScenEdit_QueryDB('weapon',2378)
print(b); -- works validTargetlist is useful but
--was expecting things like range,speed,damage,warhead dp
--b = ScenEdit_QueryDB('warhead',2378) -- doesn't exist
print(b);Basically I was looking for\expecting to be able to look up the cruise speed of unit, and a given weapon speed and range, and then use that to help calculate mission and weapons release ref points... without having to re-create the db myself in tables for every unit\weapon type in a scenario. Is QueryDB not meant to return this sort of data?
Additionally anyone know how to query the current state of EMCON, I can clearly set it via SetEMON() and get\set the obeyflag on off, but seems I can't find how to query the state of the setting prior to making changes, like if inherit is set and sonar are on and obey is on, maybe I don't want to do a particular thing etc. I checked GetDoctrine but it's not included there.