Add OnBuildingPlaced lua trigger.

This commit is contained in:
Paul Chote
2025-11-08 11:04:03 +00:00
committed by Gustas Kažukauskas
parent eb550bbbbb
commit 3177de7b2c
6 changed files with 61 additions and 12 deletions

View File

@@ -60,7 +60,7 @@ namespace OpenRA.Mods.Common.Traits.Render
overlay.ReplaceAnim(RenderSprites.NormalizeSequence(overlay, e.DamageState, overlay.CurrentSequence.Name));
}
void INotifyBuildingPlaced.BuildingPlaced(Actor self)
void INotifyBuildingPlaced.BuildingPlaced(Actor self, Actor building)
{
visible = true;
overlay.PlayThen(overlay.CurrentSequence.Name, () => visible = false);