Doom Builder Tutorials - Elevator

Опубликовано: 13 Июль 2026
на канале: JaundiceJaun
4,108
53

In this tutorial (I know, it's been a while!), I show you how to make a basic elevator for your Doom map!

Script Below:
#include "zcommon.acs"

//Initialize Floor Variable, duh.
int floor;

//This is our script which is activated
//via a nifty little switch.
script 1 (void)
{
if (floor==1)
{
Elevator_LowerToNearest (1, 16);
floor=0;
}
else
{
Elevator_RaiseToNearest (1, 16);
floor=1;
}
}

//This is the script we activate when we're in the lower sector
script 2 (void)
{
Elevator_MoveToFloor (1, 16);
floor=0;
}

//This is the script we activate from the upper sector
script 3 (void)
{
Elevator_MoveToFloor (1, 16);
floor=1;
}