Add ReturnToBase to Lua API
This commit is contained in:
committed by
Matthias Mailänder
parent
5e5d784a31
commit
eb9cf40c4c
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user