From a751f074e7a045eb3c6664c175776d1c07514595 Mon Sep 17 00:00:00 2001 From: Curtis Shmyr Date: Wed, 22 Jul 2020 21:45:13 -0600 Subject: [PATCH] Added actor parameter to Lua UnloadPassenger --- .../Scripting/Properties/TransportProperties.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Scripting/Properties/TransportProperties.cs b/OpenRA.Mods.Common/Scripting/Properties/TransportProperties.cs index 970dda33eb..f78a7762eb 100644 --- a/OpenRA.Mods.Common/Scripting/Properties/TransportProperties.cs +++ b/OpenRA.Mods.Common/Scripting/Properties/TransportProperties.cs @@ -44,8 +44,8 @@ namespace OpenRA.Mods.Common.Scripting cargo.Load(Self, a); } - [Desc("Remove the first actor from the transport. This actor is not added to the world.")] - public Actor UnloadPassenger() { return cargo.Unload(Self); } + [Desc("Remove an existing actor (or first actor if none specified) from the transport. This actor is not added to the world.")] + public Actor UnloadPassenger(Actor a = null) { return cargo.Unload(Self, a); } [ScriptActorPropertyActivity] [Desc("Command transport to unload passengers.")]