I try to use moose to let a group of two F16s and a E2 AWACS TO from the field and respawn when they shut off engines after landed
Both of F16s and AWACS are able to spawn but without respawn after shut off codes↓↓
local Group_Spawn = SPAWN:New("E2D")
Group_Spawn:InitLimit(1, 99)
Group_Spawn:SpawnScheduled(10,0)
E2D = SPAWN:NewWithAlias("E2D")
E2D:InitLimit(1 , 99)
E2D:InitRepeatOnEngineShutDown()
local function Scheduler()
E2D:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.Sinai.Cairo_West ), SPAWN.Takeoff.Hot )
return timer.getTime() + 30
end
timer.scheduleFunction(Scheduler, nil, timer.getTime() + 1)
--------------------------------------EAF-F16-------------------------------------------------
local Group_Spawn = SPAWN:New("EAF")
Group_Spawn:InitLimit(2, 99)
Group_Spawn:SpawnScheduled(10,0)
EAF = SPAWN:NewWithAlias("EAF")
EAF:InitLimit(1 , 99)
EAF:InitRepeatOnEngineShutDown()
local function Scheduler()
EAF:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.Sinai.Fayed ), SPAWN.Takeoff.Hot )
return timer.getTime() + 30
end
need help with this
Script-AWACW-CAPF16.luaLUA TEST Sinai.miz