TTT Item

Is it possible to code something that will blow up when is identified on TTT because I cant find anything on how to do this

Yeah, corpse.lua local function IdentifyBody(ply, rag)

If rigged with a bomb, go boom.

is corpse.lua a file and then just make a function IdentifyBody(ply, rag)

Yes, and no.

corpse.lua is a file in your terrortown game-mode install.

the function already exists, it’s called when a body is identified ( as you asked, right? )

Next, add some code, such as a swep, which sets a flag on an unidentified body such as .Rigged, then when that function, IdentifyBody, is called; if that flag exists create an explosion and hurt or kill the caller, ply.