Scripts are about as close to programming Doom 3 as you can possibly get without having to purchase Visual C++. The language is similar to C++, but is arguably a bit easier to learn and use.
There are three major components in Doom 3 that are controlled by scripts:
The scritping system is based around the idea of objects and events.
Objects are referenced with $name where "name" is the name of the object in DOOMEdit.
Events look like C++ member function calls, and you can really think of them that way. To send the 'hide' event to speaker_280, you'd write $speaker_280.hide();
There is a special object known as 'sys' which is where all the system calls (like print)
hide. All the events (including system calls) can all be found in "doom_events.script"
|Copyright © 2004 id software|