Jump to content

Recommended Posts

Posted

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.

Posted
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.

Posted
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.

Posted (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 by Grimes

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...