Officially deprecate this function.
This commit is contained in:
committed by
Gustas
parent
02e4bfba95
commit
b30285e38d
@@ -558,9 +558,12 @@ Actors:
|
||||
USSRlstPoint: waypoint
|
||||
Location: 48,83
|
||||
Owner: Neutral
|
||||
CFBPoint: waypoint
|
||||
BaseRectBR: waypoint
|
||||
Location: 42,90
|
||||
Owner: Neutral
|
||||
BaseRectTL: waypoint
|
||||
Location: 20,42
|
||||
Owner: Neutral
|
||||
GreeceBasePoint: waypoint
|
||||
Location: 69,46
|
||||
Owner: Neutral
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
]]
|
||||
|
||||
CheckForBase = function()
|
||||
local baseBuildings = Map.ActorsInBox(Map.TopLeft, CFBPoint.CenterPosition, function(actor)
|
||||
return actor.Type == "fact" or actor.Type == "powr"
|
||||
local baseBuildings = Map.ActorsInBox(BaseRectTL.CenterPosition, BaseRectBR.CenterPosition, function(actor)
|
||||
return (actor.Type == "fact" or actor.Type == "powr") and actor.Owner == player
|
||||
end)
|
||||
|
||||
return #baseBuildings >= 2
|
||||
|
||||
Reference in New Issue
Block a user