Fixes old Lua Move Activity

This commit is contained in:
atlimit8
2014-10-11 06:27:49 -05:00
parent 0e182e4fa8
commit 6640fa2539

View File

@@ -24,14 +24,14 @@ Actor.Move = function(actor, location)
end
Actor.MoveNear = function(actor, location, nearEnough)
actor:QueueActivity(OpenRA.New("Move", { location, WRange.FromCells(nearEnough) }))
actor:QueueActivity(OpenRA.New("Move", { actor, location, WRange.FromCells(nearEnough) }))
end
Actor.ScriptedMove = function(actor, location)
if Actor.HasTrait(actor, "Helicopter") then
Internal.HeliFlyToPos(actor, Map.CenterOfCell(location))
else
actor:QueueActivity(OpenRA.New("Move", { location }))
actor:QueueActivity(OpenRA.New("Move", { actor, location }))
end
end