Thing_Activate

From ZDoom Wiki
Jump to: navigation, search

130:Thing_Activate (tid)

  • tid: Thing ID of the thing to activate

Activates a thing so it can be used. In the case of a monster, removes the DORMANT flag from a monster so that it will be able to take damage and attack the player.


For a monster, which looks away from the player upon activation, there are two distinct reactions:

1. A monster, which has not heard gunfire or the player has not crossed the monster's line of sight before activation, will not immediately attack the player but remains as if still dormant. It will attack, however, as soon as it hears gunfire or the player crosses the monster's line of sight.

2. A monster, which has heard gunfire or the player has crossed the monster's line of sight before activation, will attack the player immediately upon activation.

See the example map below.

Examples

This script could be used to start a moving camera with a TID of 15.

script 13 ENTER
{
    Thing_Activate(15);
    ChangeCamera(15,0,0);
}

See also

External links