Jump to content

Recommended Posts

Posted (edited)

Just to be clear, I know how to do it inside the mission editor, but if there's a way to link a trigger zone to a specific unit with a LUA script, that would help me tremendously.

Edited by d0ppler

A-10C, AV-8B, Ka-50, F-14B, F-16C, F-5E, F/A-18C, L-39, Mi-8, MiG-21, MiG-29, SA34, Spitfire, Su-27, Su-33, UH-1H

  • d0ppler changed the title to Can I link a trigger zone to a unit with LUA scripting?
Posted

I use Mist for that, here are some examples.

mist.flagFunc.units_in_zones{ 
    units = {'F-15C 01', 'F-15C 02', 'F-15C 03', 'F-15C 04','M-2000C 21', 'M-2000C 22', 'M-2000C 23', 'M-2000C 24'}, 
    zones = {'01 Sukhumi Zone'}, 
    flag = 90156, 
    toggle = true,    
}


mist.flagFunc.units_in_zones{ 
    units = {'F-15C 01', 'F-15C 02', 'F-15C 03', 'F-15C 04','M-2000C 21', 'M-2000C 22', 'M-2000C 23', 'M-2000C 24'},
    zones = {'04 Kras Zone'}, 
    flag = 90456, 
    zone_type = 'sphere',
    toggle = true,    
}

 

WC's Script & Mist Examples.lua

  • Like 1

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

Thanks a bunch!

  • Like 1

A-10C, AV-8B, Ka-50, F-14B, F-16C, F-5E, F/A-18C, L-39, Mi-8, MiG-21, MiG-29, SA34, Spitfire, Su-27, Su-33, UH-1H

  • Recently Browsing   0 members

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