Wrecking Crew Posted March 20, 2013 Posted March 20, 2013 This is a request to enhance the trigger event condition of All Of Coalition Out Of Zone. While this condition uses arguments of Red and Blue for the coalition, it would be great to include the platform type such as Aircraft, Helicopter, Ship or Vehicle. I want to use a trigger for All Of Coalition Out Of Zone but I want the event to only evaluate that all Coalition Vehicles are out of the zone; I want the event condition to be True even if there are Coalition aircraft in the zone. Wrecking Crew Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.
Galwran Posted March 20, 2013 Posted March 20, 2013 Yes, we really need something like coalition_landunit_in_zone and coalition_airunit_in_zone
luza Posted March 20, 2013 Posted March 20, 2013 Can't u just do group out of zone, and select the appropriate groups? [sIGPIC][/sIGPIC]
Eddie Posted March 20, 2013 Posted March 20, 2013 You'll probably find the scripting stuff can do such things already.
Galwran Posted March 20, 2013 Posted March 20, 2013 Can't u just do group out of zone, and select the appropriate groups? Sometimes there can be dozens of groups battling for some turf; adding all of them separately would take a long time.
Wrecking Crew Posted March 21, 2013 Author Posted March 21, 2013 You'll probably find the scripting stuff can do such things already. Show me how to fish. WC Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.
Grimes Posted March 21, 2013 Posted March 21, 2013 (edited) Step 1: Load Mist into a mission Step 2: Use something like this in an expression. local units = mist.getUnitsInZones(mist.makeUnitTable({'[blue][plane]'}), {'ZONENAME'}) if #units > 0 then print('All of the blue planes are outside of the zone') return true end Simple as that. The mist unit databases are built on mission load. So you can change whatever you want within the mission file and the script will still work. edit- For better or worse the scripting engine is always going to have a much more thorough control of what you can and can't do with a scenario when compared to triggers. As such we can easily create new trigger conditions and actions via scripting without waiting on the relevant developer to add the functionally into the GUI. Edited March 21, 2013 by Grimes The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts