From d259f8f94c04a313d88de6bff9170c6b30b8fbca Mon Sep 17 00:00:00 2001 From: Ambroise Garel <47314805+akaAgar@users.noreply.github.com> Date: Wed, 23 Jul 2025 22:46:56 +0200 Subject: [PATCH] Can now spawn helicopter wingmen --- Script/The Universal Mission/SupportWingmen.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Script/The Universal Mission/SupportWingmen.lua b/Script/The Universal Mission/SupportWingmen.lua index 714afd6..54d24aa 100644 --- a/Script/The Universal Mission/SupportWingmen.lua +++ b/Script/The Universal Mission/SupportWingmen.lua @@ -71,9 +71,12 @@ do local playerTypeName = player:getTypeName() + local playerCategory = Group.Category.AIRPLANE + if player:hasAttribute("Helicopters") then playerCategory = Group.Category.HELICOPTER end + local groupInfo = DCSEx.unitGroupMaker.create( TUM.settings.getPlayerCoalition(), - Group.Category.AIRPLANE, -- TODO: or helicopter! + playerCategory, DCSEx.math.randomPointInCircle(DCSEx.math.vec3ToVec2(player:getPoint()), 500, 250), { playerTypeName, playerTypeName }, { @@ -90,6 +93,7 @@ do end TUM.log("Spawned AI wingmen") + TUM.radio.playForAll("pilotWingmanRejoin", nil, "WINGMEN", false) wingmenGroupID = groupInfo.groupID end