Add EnterTransport function to lua

This commit is contained in:
abcdefg30
2015-06-22 18:32:04 +02:00
parent be99ba7d61
commit e1c674aeca

View File

@@ -54,5 +54,12 @@ namespace OpenRA.Mods.Common.Scripting
{
Self.Trait<Mobile>().Nudge(Self, Self, true);
}
[ScriptActorPropertyActivity]
[Desc("Move to and enter the transport.")]
public void EnterTransport(Actor transport)
{
Self.QueueActivity(new EnterTransport(Self, transport, 1, true));
}
}
}