RADIUS TRIGGER

From 3DGE Wiki
Jump to: navigation, search

RADIUS_TRIGGER

Usage:
RADIUS_TRIGGER <X> <Y> <Radius> [Low Z] [High Z]

Description:
This defines where the center point of your trigger is, how large its radius is, and optionally, where its high and low trigger areas are.

Details:
It's best to use your map editor to determine the exact points for the X and Y values you want (most map editors show the grid location in real time).

To create a trigger that covers the entire map, use x=0, y=0, and radius=-1 (-1 means everywhere).

The optional [low Z] and [high Z] values are to create a "3D" trigger: one that can be walked over or under without being triggered. The [low Z] must be a value below [high Z] (you cannot invert the low and high Z values). If you use Low Z then high Z is also required.

Example:

START_MAP
  RADIUS_TRIGGER 0 0 -1
    TIP "Hello world!"
  END_RADIUS_TRIGGER
END_MAP

Height Example:

This script is designed for DOOM2 MAP29 ("The Living End"). Hop on the lowering floor near the start and wait. When you get to the bottom, the monsters near the start will get a nasty surprise.

START_MAP map29
  RADIUS_TRIGGER 1120 544 250  304 312
    TIP "Die monsters!"
    DAMAGE_MONSTERS ANY 200
  END_RADIUS_TRIGGER
END_MAP

Radius Trigger Scripts
RTSlogo.gif