Changing sector heights - Doom Legacy Wiki

Changing sector heights

From Doom Legacy Wiki

Jump to: navigation, search
Editing Tutorials

Using FraggleScript, we can change the height of the sector by moving the floor or the ceiling. There are two ways to do this, you can change it instantly or you can change it by having it move.

script 1
{
     ceilingheight(14, -20);
     floorheight(15, -8);
}

Script 1 will change the ceiling of the sector tagged 14 to -20, and the floor of the sector with tag 15 to -8. This will happen instantly.


script 2 
{
    moveceil(3, 92, 1);
    movefloor(2, 92, 1);
}

Script 2 will move the ceiling of the sector tagged 3 to a height of 92 with a speed of 1, and it will move the floor of the sector tagged 2 to 92 at a speed of 1.


Alternatively, you can also use linetrigger to activate a linedef effect which changes sector heights.

script 3 
{
    linetrigger(58, 5);
}

Script 3 will raise the floor of the sector tagged 5 by 24 units, as determined by linetype 58.

Personal tools