Takeoff in Air fixed.

NewFromGroupName Fixed
This commit is contained in:
FlightControl_Master
2017-11-12 07:12:50 +01:00
parent 49d3e4e7da
commit 5f6981d309
3 changed files with 111 additions and 6 deletions

View File

@@ -1191,7 +1191,7 @@ function SPAWN:SpawnAtAirbase( SpawnAirbase, Takeoff, TakeoffAltitude ) -- R2.2
if Takeoff == GROUP.Takeoff.Air then
for UnitID, UnitSpawned in pairs( GroupSpawned:GetUnits() ) do
SCHEDULER:New( nil, BASE.CreateEventTakeoff, { timer.getTime(), UnitSpawned:GetDCSObject() } , 1 )
SCHEDULER:New( nil, BASE.CreateEventTakeoff, { BASE, timer.getTime(), UnitSpawned:GetDCSObject() } , 1 )
end
end