Jump to content
Taylor1984

Detect when part of building is destroyed

Recommended Posts

Hi

 

I know how to destroy a certain part of a building by eg using: 

_building setHit ["dam1", 1];

But how do you detect when a part is destroyed?

 

Thanks

Share this post


Link to post
Share on other sites
10 minutes ago, Taylor1984 said:

Yes, but I couldn't get it to work, besides I need to detect when the part is destroyed not just hit.

 

getHit gives you the damage value. So getHit == 1 is destroyed

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×