Jump to content

How to use native ESCORT Task with .lua script


Recommended Posts


I would like to assign an escort task to a specific AI helicopter group, to follow a specific AI ground convoy, using .lua script.

This is a native core function of DCS LUA?


While it's a quite simple using the mission editor, I need to achieve the same behavior inside script because both group are dynamically spawned using MOOSE, so I need to do inside the .lua script to get the actual spawned group name.


Any Idea?



FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Link to comment
Share on other sites

I looked into it yesterday (after reading the other thread you wrote, which doesn't seem to exist anymore...for some reason :music_whistling:) and it seems like MOOSE doesn't "support" helicopter ground escort tasks per se (unless I'm missing something).


If you somehow found a way to script ground escort tasks for helicopter groups, then I guess it would simply be a matter of using sets and iterators to find those dynamically spawned units/groups and push the escort task to the helicopter groups.


Perhaps this could be achieved without scripting an escort task per se.

Maybe you could just set up moving zones based on convoy units/groups and set the helicopters to engage enemies while inside that zone (and remain in it). I've never tried such a thing , though, just an idea.

Edited by Hardcard
Link to comment
Share on other sites


  • Recently Browsing   0 members

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