Classes:SecretTrigger

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
Secret trigger
Actor type Script thing Game MiniZDoomLogoIcon.png (ZDoom)
DoomEd Number 9046 Class Name SecretTrigger


Classes: SecretTrigger

Usage

A SecretTrigger counts as a found secret when activated.

The secret trigger destroys itself after activation and cannot be reactivated.

Arguments

The secret trigger takes one argument, which indicates how the player is told about it:

  • args[0] → notification type
  • 0: Message and sound effect
  • 1: Message only
  • 2: Sound effect only
  • 3: Neither message nor sound effect

DECORATE definition

ACTOR SecretTrigger native
{
  +NOBLOCKMAP
  +NOSECTOR
  +NOGRAVITY
  +DONTSPLASH
}