Should I replace TNT1 with SMOKA1 since it is at that frame of the animation I want the item to pop in?
Code: Select all
//Wooden chest actor
Actor WoodChest : SwitchableDecoration
{
   Activation THINGSPEC_Activate
 +SOLID
 +DONTMORPH
 +NOBLOOD
    +USESPECIAL
  Monster
  health 50
  radius 18
  height 20
   States
   {
   Spawn:
      WCST A -1
      Stop
	Active:
	SMOK ABCD 0 A_NoBlocking
	SMOK B 0 A_PlaySound("chestopen")
	SMOK ABCD 4
	SMOK A 0 A_Jump(127, "CLIP")
	SMOK A 0 A_Jump(127, "BURGER")
	Stop
	CLIP:
	TNT A 0 A_SpawnItem "Clip"
	Stop
	BURGER:
	TNT A 0 A_SpawnItem "BigMac"
   Death:
    BEXP D 5 Bright A_Scream
    BEXP E 10 Bright A_Explode
    TNT1 A 1050 Bright A_BarrelDestroy
    TNT1 A 5 A_Respawn
    Wait
   }
}