StarvinMarvin 0 Posted July 1, 2007 How do i detect if a certain static building (already on map) is destroyed? thanks // Marv Share this post Link to post Share on other sites
Schwab 0 Posted July 1, 2007 place something you know the name of beside the building and use http://community.bistudio.com/wiki/nearestBuilding to assign the building a name. then you can watch damage of the building. Share this post Link to post Share on other sites
StarvinMarvin 0 Posted July 1, 2007 yeah i tried that.. like this.. probably some silly bug in it thou cause it didnt work _building = nearestBuilding cone #loop hint "checking" ?not alive _building : goto "dead" ~1 goto "loop" #dead hint "building is destroyed" exit Share this post Link to post Share on other sites
StarvinMarvin 0 Posted July 1, 2007 strange... tried another building and it worked.... hmm Share this post Link to post Share on other sites
Op4 BuhBye 0 Posted July 1, 2007 Just drop a trigger on the building, set the radius to 0, and set it to not present. Then close the trigger dialog and group the trigger to the building. Anything you want to happen can be execed in the on act field. Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted July 1, 2007 You may want to have a look at my burning buildings app. It gets alerted when any building in the town is destroyed. Share this post Link to post Share on other sites
Cloughy 0 Posted July 2, 2007 Put a gamelogic on the buiding called say, pos2 and put something like this in the activation getDammage (getPos pos2 nearestObject 302314) >0.9 Change the 302314 to what ever the ID is of the building you want to detect destroyed. You may have to make the 0.9 closer to 1, but it should work. Cheers GC Share this post Link to post Share on other sites