Add an ExitDelay field to allow doors to open before exiting.
This commit is contained in:
@@ -77,6 +77,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
if (exitinfo.MoveIntoWorld)
|
||||
{
|
||||
if (exitinfo.ExitDelay > 0)
|
||||
newUnit.QueueActivity(new Wait(exitinfo.ExitDelay));
|
||||
|
||||
newUnit.QueueActivity(move.MoveIntoWorld(newUnit, exit));
|
||||
newUnit.QueueActivity(new AttackMoveActivity(
|
||||
newUnit, move.MoveTo(exitLocation, 1)));
|
||||
|
||||
Reference in New Issue
Block a user