Thing_Deactivate — causes an actor to perform an actor-specific function.
Thing_Deactivate ( tid // Thing ID of the thing(s) to deactivate );
This special's function is the same whether you activate it on a line or use it in a script.
The specific behavior that occurs when an actor is activated depends on the activator's type. Monsters are likely to be the most commonly deactivated things. When you deactivate them, their dormant flag is set so that they become immobile and immune to damage.
Not everything that can be activated can also be deactivated. For example, although a spark will shoot out particles when it is activated, it does nothing if you try to deactivate it.
Deactivate everything with the TID 6: