From e1c674aecad00d02a7571e7f4c2ad2176e8ce066 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Mon, 22 Jun 2015 18:32:04 +0200 Subject: [PATCH] Add EnterTransport function to lua --- .../Scripting/Properties/MobileProperties.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OpenRA.Mods.Common/Scripting/Properties/MobileProperties.cs b/OpenRA.Mods.Common/Scripting/Properties/MobileProperties.cs index 8314022a27..2445c215ab 100644 --- a/OpenRA.Mods.Common/Scripting/Properties/MobileProperties.cs +++ b/OpenRA.Mods.Common/Scripting/Properties/MobileProperties.cs @@ -54,5 +54,12 @@ namespace OpenRA.Mods.Common.Scripting { Self.Trait().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)); + } } } \ No newline at end of file