Add enter behaviour customisation to C4Demolition.

This commit is contained in:
Paul Chote
2015-11-23 21:23:30 +00:00
parent 3e8df55bcb
commit 6304d72f44
4 changed files with 19 additions and 5 deletions

View File

@@ -34,8 +34,8 @@ namespace OpenRA.Mods.Common.Scripting
[Desc("Demolish the target actor.")]
public void Demolish(Actor target)
{
Self.QueueActivity(new Demolish(Self, target, info.C4Delay, info.Flashes,
info.FlashesDelay, info.FlashInterval, info.FlashDuration));
Self.QueueActivity(new Demolish(Self, target, info.EnterBehaviour, info.C4Delay,
info.Flashes, info.FlashesDelay, info.FlashInterval, info.FlashDuration));
}
}
}