mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Can now spawn helicopter wingmen
This commit is contained in:
parent
ce2394906f
commit
d259f8f94c
@ -71,9 +71,12 @@ do
|
|||||||
|
|
||||||
local playerTypeName = player:getTypeName()
|
local playerTypeName = player:getTypeName()
|
||||||
|
|
||||||
|
local playerCategory = Group.Category.AIRPLANE
|
||||||
|
if player:hasAttribute("Helicopters") then playerCategory = Group.Category.HELICOPTER end
|
||||||
|
|
||||||
local groupInfo = DCSEx.unitGroupMaker.create(
|
local groupInfo = DCSEx.unitGroupMaker.create(
|
||||||
TUM.settings.getPlayerCoalition(),
|
TUM.settings.getPlayerCoalition(),
|
||||||
Group.Category.AIRPLANE, -- TODO: or helicopter!
|
playerCategory,
|
||||||
DCSEx.math.randomPointInCircle(DCSEx.math.vec3ToVec2(player:getPoint()), 500, 250),
|
DCSEx.math.randomPointInCircle(DCSEx.math.vec3ToVec2(player:getPoint()), 500, 250),
|
||||||
{ playerTypeName, playerTypeName },
|
{ playerTypeName, playerTypeName },
|
||||||
{
|
{
|
||||||
@ -90,6 +93,7 @@ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
TUM.log("Spawned AI wingmen")
|
TUM.log("Spawned AI wingmen")
|
||||||
|
TUM.radio.playForAll("pilotWingmanRejoin", nil, "WINGMEN", false)
|
||||||
wingmenGroupID = groupInfo.groupID
|
wingmenGroupID = groupInfo.groupID
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user