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