diff --git a/Moose Presentations/TASK_DISPATCHER.pptx b/Moose Presentations/TASK_DISPATCHER.pptx index b5a2b7f17..0d9ebd4ab 100644 Binary files a/Moose Presentations/TASK_DISPATCHER.pptx and b/Moose Presentations/TASK_DISPATCHER.pptx differ diff --git a/Moose Test Missions/TAD - Task Dispatching/TAD-220 - A2G Task Dispatching per TYPE and SCORING/TAD-220 - A2G Task Dispatching per TYPE and SCORING.lua b/Moose Test Missions/TAD - Task Dispatching/TAD-220 - A2G Task Dispatching per TYPE and SCORING/TAD-220 - A2G Task Dispatching per TYPE and SCORING.lua index 556fd25e8..7ebd6c1ac 100644 --- a/Moose Test Missions/TAD - Task Dispatching/TAD-220 - A2G Task Dispatching per TYPE and SCORING/TAD-220 - A2G Task Dispatching per TYPE and SCORING.lua +++ b/Moose Test Missions/TAD - Task Dispatching/TAD-220 - A2G Task Dispatching per TYPE and SCORING/TAD-220 - A2G Task Dispatching per TYPE and SCORING.lua @@ -27,11 +27,11 @@ local Mission = MISSION local FACSet = SET_GROUP:New():FilterPrefixes( "FAC" ):FilterCoalitions("red"):FilterStart() -local FACAreas = DETECTION_TYPES:New( FACSet ) +local DetectionTypes = DETECTION_TYPES:New( FACSet ) local AttackGroups = SET_GROUP:New():FilterCoalitions( "red" ):FilterPrefixes( "Attack" ):FilterStart() -TaskDispatcher = TASK_A2G_DISPATCHER:New( Mission, AttackGroups, FACAreas ) +TaskDispatcher = TASK_A2G_DISPATCHER:New( Mission, AttackGroups, DetectionTypes ) --- @param #TaskDispatcher self -- @param From @@ -44,7 +44,7 @@ function TaskDispatcher:OnAfterAssign( From, Event, To, Task, TaskUnit, PlayerNa self:E( "I am in assigned ... " ) Task:SetScoreOnDestroy( "Player " .. PlayerName .. " destroyed a target", 50, TaskUnit ) Task:SetScoreOnSuccess( "The task has been successfully completed!", 200, TaskUnit ) - Task:SetPenaltyOnFailed( "The task has failed completion!", -100, TaskUnit ) + Task:SetPenaltyOnFailed( "The task has failed completion!", 100, TaskUnit ) end -- Now this is REALLY neat. I set the goal of the mission to be the destruction of Target #004. diff --git a/Moose Test Missions/TAD - Task Dispatching/TAD-220 - A2G Task Dispatching per TYPE and SCORING/TAD-220 - A2G Task Dispatching per TYPE and SCORING.miz b/Moose Test Missions/TAD - Task Dispatching/TAD-220 - A2G Task Dispatching per TYPE and SCORING/TAD-220 - A2G Task Dispatching per TYPE and SCORING.miz index 41d6059f9..a9de6f0bf 100644 Binary files a/Moose Test Missions/TAD - Task Dispatching/TAD-220 - A2G Task Dispatching per TYPE and SCORING/TAD-220 - A2G Task Dispatching per TYPE and SCORING.miz and b/Moose Test Missions/TAD - Task Dispatching/TAD-220 - A2G Task Dispatching per TYPE and SCORING/TAD-220 - A2G Task Dispatching per TYPE and SCORING.miz differ