function tbhVehicle::onDamage(%this,%obj)
{
parent::onDamage(%this,%obj);
%damLvl = %obj.getDamageLevel();// sets variable "%damLvl"
if(%damLvl >= 70) // checks damage level (30 health remaining?)
{
%obj.mountImage(heliDamageImage,1);// fire!
%obj.PlayAudio(2,HelicopterDamageSound);
}
}
This one is the most common