mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-25 20:35:19 +00:00
Wingmen now removed when player enters a new unit in SP
This commit is contained in:
@@ -180,6 +180,8 @@ do
|
|||||||
elseif event.id == world.event.S_EVENT_LAND then -- Remove wingmen on player landing
|
elseif event.id == world.event.S_EVENT_LAND then -- Remove wingmen on player landing
|
||||||
if not event.initiator:getPlayerName() then return end
|
if not event.initiator:getPlayerName() then return end
|
||||||
TUM.wingmen.removeAll()
|
TUM.wingmen.removeAll()
|
||||||
|
elseif event.id == world.event.S_EVENT_PLAYER_ENTER_UNIT then -- Remove wingmen when player takes control of a new unit
|
||||||
|
TUM.wingmen.removeAll()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user