Page 1 of 1

Marking Contacts with a Stance (Hostile/Unfriendly) in EVENT

Posted: Wed Sep 27, 2017 6:20 am
by Fer_Cabo
Hi folks,

Any idea for a LUA Script (to be used in an ACTION when, triggered by a Unit from one SIDE is detected or spends a certain amount of time inside a defined Zone/Area) that MARKS the intruder as "Unfriendly" or "Hostile"?

I know you can use the EXCLUSION ZONES feature, but these are not flexible, since they don't discriminate the SIDES of the intruding units.

For instance: The ROK cannot set up an EXCLUSION ZONE over its sovereign territory that only marks as "Hostile" DPRK aircraft (and not US or Japanese ones...)

Thanks!

RE: Marking Contacts with a Stance (Hostile/Unfriendly) in EVENT

Posted: Sat Sep 30, 2017 5:55 pm
by thewood1
Having an exclusion zone dedicated to a specific side or sides is actually a cool feature. I would suggest putting a request in the feature request thread. It could be done through lua and maybe combined with events, but it gives me a headache thinking about it.

RE: Marking Contacts with a Stance (Hostile/Unfriendly) in EVENT

Posted: Sun Oct 01, 2017 3:05 am
by michaelm75au
Here is a simplistic example:
A fixed zone has been created around a DDG (sideB).
The event is triggered by an aircraft entering the zone or by an aircraft remaining in the zone for several minutes.
There is also a condition that will check that the aircraft is 'known' as a contact to the DDG. [Added this as with the area triggers, they are based on the actual unit being the triggered, rather than a contact visible to the detecting side. Discovered another defect in that conditions are ignored when the 'unit in area' is triggered. Logged]
The action is to mark the contact as 'unfriendly' if it comes within 10 NM of the DDG.
[There is a defect in that the Lua posture is treating 'U' as unknown rather than unfriendly; unknown should be 'X'. Logged]
If you load up the scenario, the P3 should fly across the DDG's zone, and change from a green neutral to a yellow unknown after a few minutes.

RE: Marking Contacts with a Stance (Hostile/Unfriendly) in EVENT

Posted: Sun Oct 01, 2017 10:07 am
by thewood1
Good to know, I thought I was doing something wrong. The "U" thing was driving me crazy.