Fer_Cabo
Posts: 111
Joined: 9/17/2015 Status: offline
|
Hi Guys, wonder if this topic has been answered or further ellaborated on before. Anyhow i've not been able to find a solution googling around the forum and other related sites (about Lua scripts or other alternatives). How can a specific contact be marked as "Hostile" to one SIDE. Maybe best described with an example: 1) An Event is set with a "Unit Enters Area" Trigger. The area being defined via Reference Points corresponding to JAPAN-Side's Sovereign Territory on the map. 2) Triggering units entering area are those of the type "Weapon" from Side "DPRK" (intended for attacking or overflying North Korean Ballistic Missiles above Japan. Same can be applied on any area such as Guam's ADIZ or such) 3) The Event's Action should be Marking those intruder-weapons' CONTACTS as Hostiles to JAPAN-Side (and also to US-Side separately), so that they can be attacked and eventually intercepted & shot down. Obviously, the EXCLUSION ZONE solution is not a good alternative, since Exclusion Zones do not apply to "Weapon" Unit/Contact-types (only "Aircraft", "Ships", "Land" or "Submarines"), and also because if EZ is used, then JAPAN-Side's units would inmediately also attack, for example, US-Side units in the same Area (Japan's Sovereign Territory). An Event-ACTION that changes the Posture of JAPAN or US-Sides vs. DPRK to "Hostile" would imply undesired general attacks to other DPRK units no matter where these are located (in the Korean Peninsula for instance). So it seems best to use a LUA Script-Action for the Event, which would perhaps start with a "ScenEdit_UnitX ()" function to define the GUID of the intruding Contact/Unit to be marked as "HOSTILE" to JAPAN-Side (and to US-Side as well). However, neither the "UNIT" properties table nor the Unit (or Contact) GUID seem to include -at least apparently- the Stance/Posture vs particular Sides of that Unit. This is shocking because indeed this must exist, as it can be manually changed. So, no "Set Unit" or similar is of use. How could this be solved? Any ideas to work around it or for a LUA Script for the Event's Action? Ideally (this is only a suggestion), the EXCLUSION ZONE menu could be refined to be more selective (excluded Sides... Weapon Unit Types...). Thanks a lot in advance, best regards!! Fernando.
|