klem Posted May 31, 2017 Posted May 31, 2017 Is it possible to use map objects that are not on the ME list of, say, static objects? I am thinking of object types like CHURCHLSM, RURALHOUSE13, etc. because the house types on the static lists are very limited not to say unattractive. I tried editing in CHURCHLSM in place of the Air Show cone I had placed but it didn't work. I may have overlooked something. [1] = { ["category"] = "Fortifications", ["canCargo"] = false, ["shape_name"] = "CHURCHLSM", ["type"] = "CHURCHLSM", ["unitId"] = 210, ["y"] = 200151.33085714, ["x"] = -62087.446571424, ["name"] = "Cathedral", ["heading"] = 0, }, -- end of [1] }, -- end of ["units"] ["y"] = 200151.33085714, ["x"] = -62087.446571424, ["name"] = "Cathedral", ["dead"] = false, }, -- end of [153] }, -- end of ["group"] }, -- end of ["static"] ["name"] = "Third Reich", }, -- end of [6] klem 56 RAF 'Firebirds' ASUS ROG Strix Z390-F mobo, i7 8086A @ 5.0 GHz with Corsair H115i watercooling, Gigabyte 2080Ti GAMING OC 11Gb GPU , 32Gb DDR4 RAM, 500Gb and 256Gb SSD SATA III 6Gb/s + 2TB , Pimax 8k Plus VR, TM Warthog Throttle, TM F18 Grip on Virpil WarBRD base, Windows 10 Home 64bit
IAF.AssafB Posted May 31, 2017 Posted May 31, 2017 MIST allows you to set a flag to "true" when a map object gets destroyed within a trigger zone using mist.flagFunc.mapobjs_dead_zones HTH, Assaf.
klem Posted May 31, 2017 Author Posted May 31, 2017 MIST allows you to set a flag to "true" when a map object gets destroyed within a trigger zone using mist.flagFunc.mapobjs_dead_zones HTH, Assaf. Thanks but that wasn't what I wanted to know. I want to create a Template mission map for Normandy with a few towns etc in England amd perhaps Paris (just off the map) and I would like to use the houses etc we see on the Normandy map where there are towns. There are none like those buildings in in the ME. The only way seemed to be to extract and edit the mission file from the .miz file and hand edit it with different house types/names that are not in the ME. I know what they are called in the map towns, I have extracted them, but can't seem to use them. klem 56 RAF 'Firebirds' ASUS ROG Strix Z390-F mobo, i7 8086A @ 5.0 GHz with Corsair H115i watercooling, Gigabyte 2080Ti GAMING OC 11Gb GPU , 32Gb DDR4 RAM, 500Gb and 256Gb SSD SATA III 6Gb/s + 2TB , Pimax 8k Plus VR, TM Warthog Throttle, TM F18 Grip on Virpil WarBRD base, Windows 10 Home 64bit
snowsniper Posted May 31, 2017 Posted May 31, 2017 maybe you can test something like that ( from old CTLD script), must be a bit tweaked but can give ideas. (this one was used in ATME engine so you'll find some specific function) local function staticcargo(player,zone) --spawn wooden cargo --[1] = "FARP Fuel Depot", -- model for Fuel --[2] = "skladik", -- model for Cargo ( cargo caisse bois) --[3] = "Crowd1", -- model for Passengers ( foule ) --[4] = "rsp_esd-20", -- model for Generator --[5] = "UAZ-469", -- model for UAZ-469 --[6] = "cadaver", -- model for Injured Pilot dom2c-all --[7] = "dom2c-all", -- model for Injured Pilot dom2c-all maison ne pas utiliser --[8] = "boat-2", -- model for Injured Pilot dom2c-all --[9] = "boat-1", -- model for Injured Pilot dom2c-all --[10] = "box2", ne fonctionne pas --[11] = "FARP Fuel Depot", -- model used to spawn a logistic item DEFAULT local pos = zone --( x,z,y) local nameplayer = player:getName() player.modules[moduleName].indexspawned = player.modules[moduleName].indexspawned +1 local i = player.modules[moduleName].indexspawned local nam = nameplayer..i local pos2 = autour(pos,15,20) -- table for the object to span local staticObj = { ["type"] = "skladik", ["unitId"] = math.random(1,100), ["heading"] = 0, ["groupId"] = math.random(1,15), ["shape_name"] = "skladik", ["y"] = pos2.z, ["x"] = pos2.x, ["name"] = nam, ["category"] = "Fortifications", ["heading"] = math.random(1,360), ["rate"] = 100, ["dead"] = false, } coalition.addStaticObject(1,staticObj) -- generic static DCS function staticObj is the table above --player:display(" object spawned "..staticObj["name"],10) i7-10700KF CPU 3.80GHz - 32 GO Ram - - nVidia RTX 2070 - SSD Samsung EVO with LG TV screen 40" in 3840x2150 - cockpit scale 1:1 - MS FFB2 Joystick - COUGAR F16 throttle - Saitek Pro Flight Rudder Pedals
Recommended Posts