From eb9cf40c4ccc18b59d486e7c2308acb81ce97cb5 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Mon, 27 Oct 2014 17:23:20 +0100 Subject: [PATCH] Add ReturnToBase to Lua API --- OpenRA.Mods.RA/Scripting/Properties/PlaneProperties.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OpenRA.Mods.RA/Scripting/Properties/PlaneProperties.cs b/OpenRA.Mods.RA/Scripting/Properties/PlaneProperties.cs index d56e8211eb..d459b77d52 100644 --- a/OpenRA.Mods.RA/Scripting/Properties/PlaneProperties.cs +++ b/OpenRA.Mods.RA/Scripting/Properties/PlaneProperties.cs @@ -26,6 +26,13 @@ namespace OpenRA.Mods.RA.Scripting { self.QueueActivity(new Fly(self, Target.FromCell(self.World, cell))); } + + [ScriptActorPropertyActivity] + [Desc("Return to the base, which is either the airfield given, or an auto-selected one otherwise.")] + public void ReturnToBase(Actor airfield = null) + { + self.QueueActivity(new ReturnToBase(self, airfield)); + } } [ScriptPropertyGroup("Combat")]