Jump to content

Recommended Posts

Posted

One of my most used mist scripts is the unit_in_zone where it can detect [blue] vs [red] vs [all] as well as the unit type [helicopter] vs [plane] etc.

 

Can mist also detect if the unit is AI or a Client/Player? Like, [ai][blue][helicopter] vs [client][blue][helicopter]?

 

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

Based on the Mist 2.3 documentation, it doesn't look like you can filter out a unit like that.

 

You could refactor the mist function and add that command filter and do the work for it.

 

Or you could give AI flights a specific country or a set of countries and give client flights a different set. That way you use this

 

"[c][helicopter]<country name>" - add all of this country's helicopters to the table
"[-c][helicopter]<country name>" - subtract all of this country's helicopters from the table
"[c][plane]<country name>" - add all of this country's planes to the table
"[-c][plane]<country name>" - subtract all of this country's planes from the table
"[c][ship]<country name>" - add all of this country's ships to the table
"[-c][ship]<country name>" - subtract all of this country's ships from the table
"[c][vehicle]<country name>" - add all of this country's vehicles to the table
"[-c][vehicle]<country name>" - subtract all of this country's vehicles from the table

314-я смешанная авиационная дивизия

314th Mixed Aviation Division: The "Fighting Lemmings"- Forums: http://314thsquadron.enjin.com/ - ED Forum Group: http://forums.eagle.ru/group.php?groupid=119

Posted (edited)

Oh, I've used the Group Name option for four Client F-15Cs in my 'The Highway' mission, and that does work fine. But I'd rather not have to list every Client's group, and then have to maintain that list on all of the affected events when ever Client slots are modified.

 

The country idea is a work-around!

 

WC

Edited by 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

The only issue I have with that script shahdoh is what you'd mentioned during that fly in... occasionally when MIST is checking it finds a client controlled aircraft where the guy is in an external view or in F10 or something... and boots him since technically the aircraft is AI controlled.

 

It wasn't THAT common- (I left it in since it was outweighed by the inconvenience of people coming in, place spamming and crashing the server) but it's worth noting that it can boot people accidentally under some conditions.

 

I'm very happy the script exists and don't want to sound like I'm being critical about it...

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted

Understood, just pointing out that Mist can differentiate between Client and AI aircraft, what you do with the information is up to the coder. I linked the code as an example only.

 

;)

  • Recently Browsing   0 members

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