Final commit ...

This commit is contained in:
FlightControl
2017-03-17 21:49:06 +01:00
parent ce00cbf83e
commit 4e59f1a674
137 changed files with 70413 additions and 53 deletions

View File

@@ -977,7 +977,8 @@ function EVENT:onEvent( Event )
local Result, Value = xpcall(
function()
return EventFunction( EventClass, Event )
local Result, Value = EventFunction( EventClass, Event )
return Result, Value
end, ErrorHandler )
end
end
@@ -991,6 +992,8 @@ function EVENT:onEvent( Event )
else
self:E( { _EVENTMETA[Event.id].Text, Event } )
end
Event = nil
end
--- The EVENTHANDLER structure

View File

@@ -999,7 +999,7 @@ function TASK:onenterSuccess( From, Event, To )
self:E( "Task Success" )
self:MessageToGroups( "Task " .. self:GetName() .. " is successful! Good job!" )
self:GetMission():GetCommandCenter():MessageToCoalition( "Task " .. self:GetName() .. " is successful! Good job!" )
self:UnAssignFromGroups()
self:GetMission():__Complete( 1 )