FS spawn - Doom Legacy Wiki

FS spawn

From Doom Legacy Wiki

Jump to: navigation, search
  • mobj spawn(int type, int x, int y, {int angle}, {int z})

Spawns a new mapthing with various parameters. Constants for type are defined in the header THINGS.H in legacy.dat, and can be included into any script for convenience.

Note that if the z coordinate is provided, the angle coordinate must also be provided (this is the way that all optional parameters work, and will not be addressed any further in this reference).

z is absolute here rather than relative to the floor height. If z is not provided, the thing will spawn on either the floor or ceiling as it would normally.

Personal tools