Got Task_SEAD template working with all the variations and complexity!

This commit is contained in:
FlightControl
2017-03-04 08:51:31 +01:00
parent 5ddeb8d396
commit b46d61d865
13 changed files with 68834 additions and 90 deletions

View File

@@ -405,9 +405,10 @@ end
function SET_BASE:GetFirst()
self:F()
local t = self.List.first._
self:T3( { t } )
return t
local ObjectName = self.Index[1]
local FirstObject = self.Set[ObjectName]
self:T3( { FirstObject } )
return FirstObject
end
--- Gets the last object from the @{Set#SET_BASE} and derived classes.
@@ -416,9 +417,10 @@ end
function SET_BASE:GetLast()
self:F()
local t = self.List.last._
self:T3( { t } )
return t
local ObjectName = self.Index[#self.Index]
local LastObject = self.Set[ObjectName]
self:T3( { LastObject } )
return LastObject
end
--- Gets a random object from the @{Set#SET_BASE} and derived classes.