takedamage
The takedamage command is activated when a breakable object takes damage.



"if(takedamage)"


No arguments.



And example of the takedamage command used in a script is as follows...




The following script changes a variable when the block is damaged.


if(takedamage)
{
then(changevar,on,*,-1)
}