Jump to content

Recommended Posts

Posted

Is there any way for a trigger in the editor to detect if an airport has been damaged?

 

For example, if the runway gets bombed or damaged in some other way, it will become unusable to AI - aircraft will not take off from it, or land, and will just ignore it. It seems a bit odd that this feature is in the game but no way for the editor to detect and use it as a condition.

  • Like 1
Posted (edited)

What you can do is place infantry men on the runway or near airport buildings as "proxies". Make some triggers where if an infantry unit is damaged or destroyed (if one of these units are damaged or destroyed, the building or object right next to it will likely be as well) it sets a condition as you wish.

 

This is not an ideal measure at all but it will work. A bomb that is dropped on the runway or airport building (and hence the infantry unit) will register that portion of the airport as destroyed.

 

Habu

Edited by Habu23

[sIGPIC][/sIGPIC]

Posted (edited)
Is there any way for a trigger in the editor to detect if an airport has been damaged?

 

For example, if the runway gets bombed or damaged in some other way, it will become unusable to AI - aircraft will not take off from it, or land, and will just ignore it. It seems a bit odd that this feature is in the game but no way for the editor to detect and use it as a condition.

 

Not with default triggers. Slmod is able to detect map object deaths, however, with two functions, slmod.mapobj_destroyed and slmod.mapobj_dead_in_zone. slmod.mapobj_destroyed detects the death of a specific map object(s) (you can specify more than one), and slmod.mapobj_dead_in_zone detects when a specific number of map objects die within a specific trigger zone. See the Slmod beta 5.3 rev1 guide pdf, pages 15 and 16, if you want more info & programming examples.

 

... of course, these only work in multiplayer if the host has Slmod installed, but there is no real reason you can't make a single player mission that needs to be flown with the multiplayer exe. The only other drawbacks would be that an internet connection would be required (for master server), and you couldn't count it in your log book. You could even enforce a single-aircraft rule with deactivations of the host aircraft (as deactivate group does work on the host).

Edited by Speed

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

  • Recently Browsing   0 members

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