-- Player Enters a trigger zone, and the countdown to his death begins. -- -- killcounter and detonator can be reset using another script like a switch script or your own script -- -- So far there is no stopping the countdown in this script -- -- Tarkus1971 -- local detonation local gt function countdown_init(e) detonation = 0 detonator = 0 killcounter = 21 end function countdown_main(e) if g_Entity[e]['plrinzone']==1 and detonator == 0 then detonator = 1 -- Destroy(e) ActivateIfUsed(e) end if detonator == 1 then if killcounter > 0 then killcounter = killcounter - .025 Prompt("Countdown " ..math.floor(killcounter)) if math.floor(killcounter) <= 0 then HurtPlayer(e,g_PlayerHealth) -- detonator = 2 end end end end