BlacleyCole Posted July 5, 2018 Posted July 5, 2018 (edited) I’m wanting to make some static items hidden until a trigger is initiated. How can I do this right now I have it this far but can not find the correct action must will work with unit items but not static . Why would the allow you to Ok figured out how the trigger should work but the items are hidden in the me but when you go fly the mission they’re there from the start I’m using a time more trigger set to 120 but I jump right to the area and they are showing from the start. Edited July 6, 2018 by BlacleyCole BlackeyCole 20years usaf XP-11. Dcs 2.5OB Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.
feefifofum Posted July 6, 2018 Posted July 6, 2018 Unfortunately this is not possible with static objects at this time. There was a "static activate" trigger recently added to the ME, so it may be planned, but it doesn't appear functional yet. THE GEORGIAN WAR - OFFICIAL F-15C DLC
Zayets Posted July 6, 2018 Posted July 6, 2018 local staticObj = {... your_object_data ...} coalition.addStaticObject(1,staticObj) https://wiki.hoggitworld.com/view/DCS_func_addStaticObject dynAddStatic in MIST should work as well. [sIGPIC]OK[/sIGPIC]
BlacleyCole Posted July 6, 2018 Author Posted July 6, 2018 Dang I guess it’s time to dip my toe in the mist pond siince the me method is inop at this time BlackeyCole 20years usaf XP-11. Dcs 2.5OB Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.
Zayets Posted July 6, 2018 Posted July 6, 2018 You can also try MOOSE, it looks a bit easier to play with static objects there. [sIGPIC]OK[/sIGPIC]
BlacleyCole Posted July 6, 2018 Author Posted July 6, 2018 Ok I’ve been holding off on scripting until I somewhat mastered he native commands BlackeyCole 20years usaf XP-11. Dcs 2.5OB Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.
feefifofum Posted July 7, 2018 Posted July 7, 2018 local staticObj = {... your_object_data ...} coalition.addStaticObject(1,staticObj) That is native DCS code, just FYI. The link above is documentation and examples for the SSE (Simulator Scripting Engine) which runs DCS. You can add your object data and run that command in a DO SCRIPT container if you're ready to enter the wild world of .lua The link above shows the exact syntax and which values are required/optional. THE GEORGIAN WAR - OFFICIAL F-15C DLC
BlacleyCole Posted July 7, 2018 Author Posted July 7, 2018 So if I get this right I don’t add it normally but thru script? If so I guess I can make a loop to load each item if I supply type ,name, position, etc? Can you use an array to supply the information or will I have to cut and paste the script over and over or is only one iteration allowed per do scriptbox so I would need to creat a new action for each item? BlackeyCole 20years usaf XP-11. Dcs 2.5OB Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.
feefifofum Posted July 7, 2018 Posted July 7, 2018 You can absolutely use arrays and loops. The simplest way is to use local variables and one-off DO SCRIPT containers, but if you want more complexity the possibilities are there. It sounds like you're getting into CTLD territory though, so you might want to check that out and make sure you're not writing a bunch of code that does something someone else has already put together. THE GEORGIAN WAR - OFFICIAL F-15C DLC
BlacleyCole Posted July 8, 2018 Author Posted July 8, 2018 Yeah I’m just looking into mist and ctld right now my problem was the native process isn’t working which would be great if it did. My next learning task is getting the ai helos to pickup and drop off items. I tried getting the mi-8 to pick up the metics and drop off them off at the farp but it isn’t working one problem was the mi-8 wouldn’t land where the medic were for some reason. I’m going to move them to a more level area to see if that helps. I have the mi-8 set to excellent ability/pilot BlackeyCole 20years usaf XP-11. Dcs 2.5OB Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.
BlacleyCole Posted July 8, 2018 Author Posted July 8, 2018 I have the pdf doc for mist is there a pdf for ctld? BlackeyCole 20years usaf XP-11. Dcs 2.5OB Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.
feefifofum Posted July 8, 2018 Posted July 8, 2018 (edited) There's a pretty extensive readme and examples on the GitHub page Ciribob has also done a few example missions with video explanations here Edited July 8, 2018 by feefifofum THE GEORGIAN WAR - OFFICIAL F-15C DLC
Recommended Posts