ZDoom Line Specials

131:Thing_Deactivate

Name

Thing_Deactivate — causes an actor to perform an actor-specific function.

Synopsis

Thing_Deactivate (tid);
Thing_Deactivate (
  tid        // Thing ID of the thing(s) to deactivate
);

Parameters

tid
All actors with this TID will be deactivated.

ACS

This special's function is the same whether you activate it on a line or use it in a script.

Remarks

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.

Example

Deactivate everything with the TID 6:

Thing_Deactivate (6);

First Available In

Hexen

See Also

Thing_Activate