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

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
Fer_Cabo
Posts: 111
Joined: Thu Sep 17, 2015 2:39 pm

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

Post 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!
thewood1
Posts: 10358
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

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

Post 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.
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

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

Post 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.
Attachments
Sandbox..2d3.scen.zip
(345.87 KiB) Downloaded 22 times
Michael
thewood1
Posts: 10358
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

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

Post by thewood1 »

Good to know, I thought I was doing something wrong. The "U" thing was driving me crazy.
Post Reply

Return to “Mods and Scenarios”