quote:
target = {name = 'TEST', latitude = *SOME LAT*, longitude = *SOME LON*, type = 'Ship', dbid = *Some Random DBID*, side = 'RED'}
ScenEdit_AddUnit(target)
print(target)
--OUTPUT: { speed = 0, side = 'RED', throttle = FullStop, desiredheading = 0, heading = 0, guid = '0IYVAT-0HM1EJSER3RM4', dbid = 1024, name = 'TEST', unitname = 'TEST', type = 'Ship', longitude = 122, latitude = 26 }
--Note that it autonomously filled in a guid to the input unit selector, and I cannot use this input to generate units again because of the conflicting GUID.