Fixes old Lua Move Activity
This commit is contained in:
@@ -24,14 +24,14 @@ Actor.Move = function(actor, location)
|
|||||||
end
|
end
|
||||||
|
|
||||||
Actor.MoveNear = function(actor, location, nearEnough)
|
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
|
end
|
||||||
|
|
||||||
Actor.ScriptedMove = function(actor, location)
|
Actor.ScriptedMove = function(actor, location)
|
||||||
if Actor.HasTrait(actor, "Helicopter") then
|
if Actor.HasTrait(actor, "Helicopter") then
|
||||||
Internal.HeliFlyToPos(actor, Map.CenterOfCell(location))
|
Internal.HeliFlyToPos(actor, Map.CenterOfCell(location))
|
||||||
else
|
else
|
||||||
actor:QueueActivity(OpenRA.New("Move", { location }))
|
actor:QueueActivity(OpenRA.New("Move", { actor, location }))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user