Spawnthing
:
thingid
x
y
angle
z
mlook
type:
normal
ambush/deaf
flash
This defines the point where you want a monster to spawn, the angle to face, the z level to spawn, and mlook angle.
NOTE: you canot spawn players anywhere (OUR_HERO, or PLAYER2-8).
You must use a level editor to spawn players.
However, you can spawn a teleport destination on top of an extrafloor, then use
activate_linetype
to trigger a teleport linetype to cause the player to instantly teleport above an extrafloor.
Use this to spawn monsters or items on top of extrafloors using the
z
entry, which can equal the top of an extrafloor, or above (a normal object will fall on top of an extrafloor, just like a Quake entity). Also is very effective when used in combination with
when_appear
. You can fine tune what skill and gameplay mode the thing is spawned in.
ex.
     spawnthing 3001 0 0 180 128 0
This would spawn an Imp at x=0, y=0, angle=180, z=128, and mlook=0.
Common map angles are:
0 - East
315 - South East
270 - South
225 - South West
180 - West
135 - North West
90 - North
45 - North East
.but you can fine tune where the angle is facing using any number between 0 (zero) and 315.
MLOOK ANGLES
:
1) For non-viewing angles:
max up is
89
, max down is
-89
, and
0
(zero) is straight ahead. Use this for laser shooters, aiming attacks for special events, etc. These angles will not work with a camera.
2) For viewing angles:
max up is
45
, max down is
-45
, and
0
(zero) is straight ahead. Use this for end of map cameras, players, and monsters. It's mostly used for end of map cameras, and isn't very useful for monsters.
TYPE:
normal:
spawns the thing with no flash
ambush:
spawns the thing in ambush mode, some editors call this deaf
flash:
makes the thing spawn as if it is teleported in, displaying the flash associated with the event