This is my current code:
actor RUBBERCAN WEAK ifaction RUBCANDENT { ifactioncount 16 { strength 0 action ANULLACTION break } } else ifhitweapon { ifwasweapon RADIUSEXPLOSION { state rats ifrnd 48 spawn BURNING debris SCRAP3 12 ifvarn HITAG 0 { espawnvar HITAG // [SM] Spawn actor in HITAG } // [SM] Prepare for respawn resetcount cstat 32768 setvar CAN_BLOWNUP 1 } else action RUBCANDENT } else ifvare CAN_BLOWNUP 1 { state respawnrubbercan } enda
Unfortunately, the actor doesn't spawn... For example, if I set the rubbercan's hitag to 51 (COLA), no medkit spawns.