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:
- normal = spawns the thing with no flash
- FLASH = makes the thing spawn as if it teleported in, displaying the flash associated with the event
- AMBUSH = spawns the thing in ambush mode (some editors call this deaf mode)
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:
0- East90- North180- West270- South45- North East135- North West225- South West315- South East
<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