mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-21 21:16:50 +00:00
"On landing" actions no longer triggered when player lands away from an airfield
This commit is contained in:
@@ -225,11 +225,9 @@ do
|
||||
if not event.initiator then return end -- No event initiator
|
||||
if Object.getCategory(event.initiator) ~= Object.Category.UNIT then return end -- Initiator isn't an unit
|
||||
if event.initiator:getCoalition() ~= TUM.settings.getPlayerCoalition() then return end -- Not a friendly
|
||||
if not event.place then return end -- Not landed at an airbase (e.g. helicopter landing on the ground)
|
||||
|
||||
local baseName = "AIRBASE"
|
||||
if event.place then
|
||||
baseName = event.place:getName():upper()
|
||||
end
|
||||
local baseName = event.place:getName():upper()
|
||||
|
||||
if TUM.settings.getValue(TUM.settings.id.MULTIPLAYER) or not event.initiator:getPlayerName() then
|
||||
doAmbientChatter("atcSafeLanding", {event.initiator:getCallsign(), baseName}, baseName.." ATC", 1)
|
||||
|
||||
Reference in New Issue
Block a user