Expose Land and Resupply functions for aircraft to lua

This commit is contained in:
abcdefg30
2016-05-06 17:24:59 +02:00
parent 526f851489
commit 19482863fd

View File

@@ -46,5 +46,19 @@ namespace OpenRA.Mods.Common.Scripting
else else
Self.QueueActivity(new HeliReturnToBase(Self)); Self.QueueActivity(new HeliReturnToBase(Self));
} }
[ScriptActorPropertyActivity]
[Desc("Queues a landing activity on the specififed actor.")]
public void Land(Actor landOn)
{
Self.QueueActivity(new Land(Self, Target.FromActor(landOn)));
}
[ScriptActorPropertyActivity]
[Desc("Starts the resupplying activity when being on a host building.")]
public void Resupply()
{
Self.QueueActivity(new ResupplyAircraft(Self));
}
} }
} }