mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/master' into branch
This commit is contained in:
commit
4ec2923f46
@ -2082,13 +2082,15 @@ function SPAWN:SpawnAtAirbase( SpawnAirbase, Takeoff, TakeoffAltitude, TerminalT
|
|||||||
--self:F( { AirbaseCategory = AirbaseCategory } )
|
--self:F( { AirbaseCategory = AirbaseCategory } )
|
||||||
|
|
||||||
-- Set airdrome ID. For helipads and ships we need to add the helipad ID and linked unit.
|
-- 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
|
if AirbaseCategory == Airbase.Category.SHIP then
|
||||||
SpawnPoint.linkUnit = AirbaseID
|
SpawnPoint.linkUnit = AirbaseID
|
||||||
SpawnPoint.helipadId = AirbaseID
|
SpawnPoint.helipadId = AirbaseID
|
||||||
elseif AirbaseCategory == Airbase.Category.HELIPAD then
|
elseif AirbaseCategory == Airbase.Category.HELIPAD then
|
||||||
SpawnPoint.linkUnit = AirbaseID
|
SpawnPoint.linkUnit = AirbaseID
|
||||||
SpawnPoint.helipadId = AirbaseID
|
SpawnPoint.helipadId = AirbaseID
|
||||||
|
else
|
||||||
|
SpawnPoint.airdromeId = AirbaseID
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Set waypoint type/action.
|
-- Set waypoint type/action.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user