Added actor parameter to Lua UnloadPassenger

This commit is contained in:
Curtis Shmyr
2020-07-22 21:45:13 -06:00
committed by abcdefg30
parent 75cb5c2166
commit a751f074e7

View File

@@ -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.")]