Startscript codepointers - Doom Legacy Wiki

Startscript codepointers

From Doom Legacy Wiki

Jump to: navigation, search
Editing Tutorials

This feature is not yet available at the time of writing in Legacy v1.42 but will be in Legacy v2.0.

Thing frames have the ability to execute code when they are displayed. This is decided by their codepointer. A cool feature of Doom Legacy is the ability to trigger FraggleScript scripts through the use of these codepointers.

First, get the frame ID you want to bind to an FS script. Dehacked is a good editor to do this.

Now, add the following to a DEHACKED lump or *.deh file:

Frame ###

Codep = StartFS

Duration = ###

Remove the extra newlines if you want.

Set Frame to the frame you want to execute the script. Set the Duration to the script number you want to execute.

Avoid setting this to frames that already have a codepointer assigned. Doing so may cause little issues to erupt.

Setting this to the Normal frame of a gettable thing will trigger the script when it is picked up. Setting it to any other thing will trigger it when the frame is rendered.

Personal tools