Add EnterTransport function to lua
This commit is contained in:
@@ -54,5 +54,12 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
{
|
{
|
||||||
Self.Trait<Mobile>().Nudge(Self, Self, true);
|
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user