xXMustangXx Posted November 2, 2020 Posted November 2, 2020 Hello, this part of a script I have in a mission, it works fine when hosted in regular OpenBeta DCS but the schedulers wont run when hosted in DCS OpenBeta Server. Is there something different we have to take into account when running in DCS Server? GroupAPC = SET_GROUP:New():FilterCoalitions( "blue" ):FilterStart() DestroyerWhite = SCHEDULER:New( nil, function() GroupAPC:ForEachGroupNotInZone( ZoneA, function( GroupObject ) for UnitId, UnitData in pairs( GroupObject:GetUnits() ) do local UnitAction = UnitData UnitAction:Destroy() BASE:E( timer.getTime() .. "/////////// FILTER DESTROY OutSide Zone Red/////////////" ) end end ) --end, {}, 15, 1, 0, 400 ) end, {}, 15, 1, 0, 300 ) SCHEDULER:New( nil, function() DestroyerWhite:Stop() BASE:E( timer.getTime() .. "/////////// FILTER DESTROY OutSide Zone Red STOPPED/////////////" ) --end, {}, 398 end, {}, 298 ) DestroyerBlue = SCHEDULER:New( nil, function() GroupAPC:ForEachGroupNotInZone( ZoneB, function( GroupObject ) for UnitId, UnitData in pairs( GroupObject:GetUnits() ) do local UnitAction = UnitData UnitAction:Destroy() BASE:E( timer.getTime() .. "/////////// FILTER DESTROY OutSide Zone Blue/////////////" ) end end ) --end, {}, 405, 1, 0, 690 ) end, {}, 305, 1, 0, 590 ) DestroyerRed = SCHEDULER:New( nil, function() GroupAPC:ForEachGroupNotInZone( ZoneC, function( GroupObject ) for UnitId, UnitData in pairs( GroupObject:GetUnits() ) do local UnitAction = UnitData UnitAction:Destroy() BASE:E( timer.getTime() .. "/////////// FILTER DESTROY OutSide Zone White/////////////" ) end end ) --end, {}, 695, 1, 0 end, {}, 595, 1, 0 ) Thanks!!
funkyfranky Posted November 3, 2020 Posted November 3, 2020 No, MOOSE does not make any difference between SP and MP. It does not even know if the mission runs on a server or locally. So every difference is a DCS MP quirk usually. However, schedulers run fine in MP missions. So that is a bit strange. A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
xXMustangXx Posted November 4, 2020 Author Posted November 4, 2020 yeah weird, I was running bare tail and the BASE:E comment would not come up at all. and obviously nothing happened while flying the mission. tried it a few times with same results. then tried hosting it on two different client computers and worked as intended...
Recommended Posts