Jump to content

Recommended Posts

Posted

Hi all,

 

I am looking for a better solution for the way that I select targets in a sequential order. Its for a multiplay mission.

 

Cont. Act. > Unit Alive (D1T1), Flag is False (1) > Flag On (1)

Switched Con > Time Since Flag (1,60) > Flag Off (1)

Switched Con > Flag is True (1) > Do Script File (D1T1.lua), sound to group (dragon 1, button..)

 

 

for the next target(s) I use:

 

Con Act > Unit Dead (D1T1), Unit Alive(D1T2), Unit Alive(D1T3), Unit Alive(D1T4), Flag is False (2) > Flag On (2)

Switched Con > Time Since Flag (2,60) > Flag Off (2)

Switched Con > Flag is True (2) > Do Script File (D1T2.lua), sound to group (dragon 1, button..)

 

The problem with my way of doing things is that when the 2/3/4 target in my list gets destroyed by somebody else then the sequence will not work anymore. Is there a better way of doing things?

Iam a bit of a noob to .lua and mist.

 

D1T1.lua..

 

mist.msgLL{

units = {'D1T1'},

acc = 3,

displayTime = 10,

msgFor= { units = {'Dragon 1'}},

text = 'Your Target, Elevation 0 meters, SAM M1097 Avenger, GG11, No Mark, Lasercode 1266, Ordinance AGM-65, Threats SAM/AAA, Cleared Hot, LL : '

}

end

 

thank you very much for the help!

Solex.

notready.miz

  • Recently Browsing   0 members

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