Check if a building is destroyed

The Hard Way:

Put down a GameLogic named glBuilding on the map.

Click the IDs button on the editor sidebar and zoom in till you see the small number over the building you want destroyed. Use that number in the next step.

Setup a trigger with the condition:

!alive (getPos glBuilding nearestObject 85868)

Where 85868 is the number you found when zooming in on the map.

The Easy Way:

Place a trigger over the building and then group the trigger to the building.You then get a new option in the trigger “Static Object” just set the trigger to not present. Thanks to F2k_Sel for that hint!

Comments are closed.