I will look into c_trace, thanks.

But the while(key_ctrl) just delayed the trail until the key is released.

function bomb_drop(x,y,z,nrofbombs)
{
while(key_ctrl)
{
wait(1);
}
if (nrofbombs>=0)
nrofbombs-=1;
ent_create("bomb.mdl",vector(x,y,z),NULL);
//return(nrofbombs=0);

}

Isnt it supposed to hold until the key is released and then execute the rest of the code?