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

@@ -37,7 +37,7 @@ namespace OpenRA.Mods.Common.Traits.Render
wsb = self.TraitsImplementing<WithSpriteBody>().Single(w => w.Info.Name == info.Body);
}
void INotifyBuildingPlaced.BuildingPlaced(Actor self)
void INotifyBuildingPlaced.BuildingPlaced(Actor self, Actor building)
{
if (!IsTraitDisabled)
wsb.PlayCustomAnimation(self, Info.Sequence);