JRM Posted January 15, 2021 Share Posted January 15, 2021 (edited) HI, I was wondering if there´s a way to make units disappear when they get shot either by guns or missiles...right know im using the trigger opt <Unit life less than 90%....Group deactivate (RED1)>, problem with this is that it doesnt make any sense to deactivate a full group when only a single unit is hit. I can´t find a trigger consequence that deactivates only a single unit of a group...Do I need to script this with lua? How do I do that? Anyway, I attached the .miz file of the mission. Redflagtraining.miz Edited January 15, 2021 by JRM Link to comment Share on other sites More sharing options...
toutenglisse Posted January 17, 2021 Share Posted January 17, 2021 On 1/15/2021 at 2:50 PM, JRM said: ...<Unit life less than 90%....Group deactivate (RED1)>... You can use "Destroy Unit" instead of "Group deactivate". Link to comment Share on other sites More sharing options...
JRM Posted January 17, 2021 Author Share Posted January 17, 2021 16 minutes ago, toutenglisse said: You can use "Destroy Unit" instead of "Group deactivate". Yeah...problem is that when I chose that action there´s no avaiable air unit for this, only ground units appear on the selection list Link to comment Share on other sites More sharing options...
toutenglisse Posted January 17, 2021 Share Posted January 17, 2021 Bizarre ! all air units are available on my side... Link to comment Share on other sites More sharing options...
JRM Posted January 17, 2021 Author Share Posted January 17, 2021 1 minute ago, toutenglisse said: Bizarre ! all air units are available on my side... There´s something I must be doing wrong....gona rebuild then Link to comment Share on other sites More sharing options...
JRM Posted January 17, 2021 Author Share Posted January 17, 2021 9 minutes ago, toutenglisse said: Bizarre ! all air units are available on my side... Ok tha action itself its called explode unit (in my game) but is the same thing that the one you have there (destroy unit) this works on my version but I ideally want a action that disapears the unit or that deactivates aircraft AI but no air unit appears when I select the last one. Link to comment Share on other sites More sharing options...
toutenglisse Posted January 17, 2021 Share Posted January 17, 2021 As an exemple of what you can do, knowing it is a red flag fight (no target really destroyed), here a little fight between two AIs (f15 blue vs Mig29 red). You can launch and watch it from point of view you want (1 AI or the other, or F10 map view). Both AIs have the same options : when closer than 30km away from enemy, become immortal (mortal again when exiting this 30km distance from enemy) - when get hit by enemy turn on smoke to visually signal to all units that it is out of fight (+ text message) - also "Fire forbidden" to stop fighting, set to invisible so other AIs ignore it, switch to RTB waypoint. This would also work with much more units involved (and adding as many triggers as necessary + adjusting the flag"5" : I use it to stop detecting unit hits when 1 is already hit/has lost fight, so if an other missile hits after that it is ignored ). test-redflag-fight.miz Link to comment Share on other sites More sharing options...
Recommended Posts