Updates after the presentation.

This commit is contained in:
FlightControl 2017-03-20 13:33:02 +01:00
parent 32c5227d71
commit 664580e3f1
3 changed files with 3 additions and 3 deletions

View File

@ -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.