Jump to content

MOOSE - Does DCS Server reads script differently?


Recommended Posts

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

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.

i7-8700K | Asus RTX 2080Ti Strix OC | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 960 Pro SSD | VKB Gunfighter Pro | MFG Crosswind | Rift S

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...