xXMustangXx Posted November 2, 2020 Share 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!! Link to comment Share on other sites More sharing options...
funkyfranky Posted November 3, 2020 Share 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 | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss Link to comment Share on other sites More sharing options...
xXMustangXx Posted November 4, 2020 Author Share 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... Link to comment Share on other sites More sharing options...
Recommended Posts