Jump to content
Sign in to follow this  
Bbartram

How to detect object destroyed?

Recommended Posts

I'd like to detect when a building is about to be destroyed, and hide it, revealing a crater, and add particle fx of dust.

To hide it, I intend to rotate it 180, essentially stuffing it underground. The crater already exists under the house.

Any tips on how to detect the building destruction? Obviously, there is code to cause the building to deflate like a balloon when it's destroyed... any way I can hijack it to run my own script?

Thanks

Share this post


Link to post
Share on other sites

Hmm.... there might be a detector command that allows you to look-up the damage level of a unit. To do what you want to do then you'll need to have an animation scripted into your building's .p3d file. Sounds perfectly possible and a rather good idea too.

*Edit* There is. I think it's getdammage. Look it up pal.

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
Sign in to follow this  

×