Jump to content

Kill damaged landed aircraft


PhoenixTunes

Recommended Posts

Hello everyone,

I am looking for an algorithm created with either MIST or DCS' ingame LUA to kill a unit whenever it has landed and is damaged, or to return "True" whenever the crew of said aircraft has disembarked the aircraft/helicopter after emergency landing in order to activate a flag which will then explode the landed aircraft/helicopter in order to let an automatic respawn script do its work.

This is what I have got so far:

 

TRIGGERS:

 

3 SWITCHED CONDITION (Kill Landed Mi-24V 1)

 

CONDITIONS:

 

UNIT'S AGL ALTITUDE LOWER THAN (Hind 1, 15)

UNIT'S SPEED LOWER THAN (Hind 1, 0.513) *I entered 1 knot and it showed as this :megalol: )

UNIT DAMAGED (Hind 1)

 

ACTIONS:

 

DO SCRIPT (trigger.action.explosion(Unit.getByName('Hind 1'):getPosition().p, 100))


Edited by PhoenixTunes
spelling correction
Link to comment
Share on other sites

  • Recently Browsing   0 members

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