From 79b52e4c666d9038ddaf8d74373f949f6ceeab1e Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 3 Dec 2013 23:26:37 +1300 Subject: [PATCH] Add ScriptedMove and Teleport functions to lua library. --- mods/ra/lua/actor.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mods/ra/lua/actor.lua b/mods/ra/lua/actor.lua index 904b6a5be4..5d31078912 100644 --- a/mods/ra/lua/actor.lua +++ b/mods/ra/lua/actor.lua @@ -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