From 4955fe4d9260ad3fba0e0688a0be4f562f872614 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 23 Mar 2025 14:11:21 +0100 Subject: [PATCH] Update Spawn.lua - Fix for problem that helos are not spawned on ships but at origin of the map --- Moose Development/Moose/Core/Spawn.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Core/Spawn.lua b/Moose Development/Moose/Core/Spawn.lua index 37e8a1962..de81f9a46 100644 --- a/Moose Development/Moose/Core/Spawn.lua +++ b/Moose Development/Moose/Core/Spawn.lua @@ -2082,13 +2082,15 @@ function SPAWN:SpawnAtAirbase( SpawnAirbase, Takeoff, TakeoffAltitude, TerminalT --self:F( { AirbaseCategory = AirbaseCategory } ) -- Set airdrome ID. For helipads and ships we need to add the helipad ID and linked unit. - SpawnPoint.airdromeId = AirbaseID + -- Note, it is important not to set the airdrome ID for at least ships, because spawn will happen at origin of the map if AirbaseCategory == Airbase.Category.SHIP then SpawnPoint.linkUnit = AirbaseID SpawnPoint.helipadId = AirbaseID elseif AirbaseCategory == Airbase.Category.HELIPAD then SpawnPoint.linkUnit = AirbaseID SpawnPoint.helipadId = AirbaseID + else + SpawnPoint.airdromeId = AirbaseID end -- Set waypoint type/action.