as an example the following code
Code: Select all
local sub=ScenEdit_SelectedUnits()
print(sub){ units = { [1] = { name = 'K-517', guid = 'W7ZXL3-0HMGVOQVLS72K' } } }
Now the special action I want to create is if the player selects a single submarine they can then deploy a RHIB with a Spetsnaz team aboard. In order to do this I need to access the submarines location and altitude. The date is obviously there but I lack the coding skills to parse it out. What would be the proper syntax to index the array to get the guid. Also any hint to error out in case the player has selected more than one unit
