The c_scan is a for loop... take a look at the engine function in assembler if you can read it. Its added to the function queue and you need to wait a bit longer then one frame after the c_scan, especially when you use the YOU pointer in the trace events. Why do you even want to delete the entity again? This creates alot of useless overhead. Just hide it and show it again after the time you want.