Add ScriptedMove and Teleport functions to lua library.

This commit is contained in:
Paul Chote
2013-12-03 23:26:37 +13:00
parent 599faba94e
commit 79b52e4c66

View File

@@ -27,6 +27,14 @@ Actor.MoveNear = function(actor, location, nearEnough)
actor:QueueActivity(OpenRA.New("Move", { location, Map.GetWRangeFromCells(nearEnough) }))
end
Actor.ScriptedMove = function(actor, location)
actor:QueueActivity(OpenRA.New("Move", { location }))
end
Actor.Teleport = function(actor, location)
actor:QueueActivity(OpenRA.New("SimpleTeleport", { location }))
end
Actor.HeliFly = function(actor, position)
actor:QueueActivity(OpenRA.New("HeliFly", { position }))
end