SPAWN_THING

Usage:
SPAWN_THING <thing id> <X> <Y> <Angle> <Z> <mlook>

Variants:
SPAWN_THING_FLASH <thing id> <X> <Y> <Angle> <Z> <mlook>
SPAWN_THING_AMBUSH <thing id> <X> <Y> <Angle> <Z> <mlook>

Description:
This command spawns a new monster or item on the map. You can set the point where you want the monster to spawn, the angle to face, the z height to spawn, and the mlook angle. There are three types of SPAWN_THING command:

Details:
<thing id> specifies the type of monster or item to be spawned, and can be either the name or the number from THINGS.DDF, like "IMP" or "3001".

<X> <Y> is the spawn coordinates. 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).

<Angle> the monster will be facing. Common map angles are:

but you can fine-tune where the angle is facing using any number between 0 (zero) and 359.

<Z> is the vertical coordinate, useful to spawn monsters or items on top of extrafloors, where the <Z> can equal the top of an extrafloor. Most things spawned above the floor will fall with gravity (just like a Quake entity).

NOTE: you cannot spawn players anywhere (OUR_HERO or PLAYER2-8). You must use a level editor to spawn players.

<mlook> this is the vertical looking angle of the thing, which ranges from -89 to 89, and 0 (zero) is straight ahead. Use this for laser shooters, special aiming attacks, and for end of map cameras.

Example:

START_MAP map01
  RADIUS_TRIGGER 0 0 -1

    // x=64, y=224, angle=180 (West), z=128
    SPAWN_THING IMP 64 224 180 128

  END_RADIUS_TRIGGER
END_MAP