Add ReturnToBase to Lua API

This commit is contained in:
Oliver Brakmann
2014-10-27 17:23:20 +01:00
committed by Matthias Mailänder
parent 5e5d784a31
commit eb9cf40c4c

View File

@@ -26,6 +26,13 @@ namespace OpenRA.Mods.RA.Scripting
{ {
self.QueueActivity(new Fly(self, Target.FromCell(self.World, cell))); 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")] [ScriptPropertyGroup("Combat")]