FS Things.h - Doom Legacy Wiki

FS Things.h

From Doom Legacy Wiki

Jump to: navigation, search

things.h is a definition file (stored in legacy.dat) that makes referring to mapthings while scripting a lot easier. Without things.h in your script, you would have to refer to the mapthings by number. With things.h, you can refer to them by name. You should always use the names to refer to mapthings, since the numbers (which reflect the internal representation of the objects in the engine) might change in new versions of Legacy.

To use things.h in your script, you need the following line in your script:

include("things.h");

This example shows how to spawn an IMP using its name, rather than a number.

[scripts]
include("things.h");
script 1 { spawn(IMP, 56, 78, 90); }

Most up to date things.h, including some definitions not yet in Legacy.

Personal tools