First, you must add an elevator tile. You need one for each set of elevators. Somewhere in your XLAT file under “things”, add the line “elevator 300;”
Example:
things
{
trigger 98
{
action = "Pushwall_Move";
arg1 = 8;
arg2 = 2;
arg3 = 2;
playeruse = true;
secret = true;
}
trigger 99
{
action = "Exit_VictorySpin";
playercross = true;
}
elevator 300;
elevator 301;
You will also need to define a switch tile as well, as an example I am using the one from Coffee Break and the definitions from my previous switch door tutorial. Create a new file called ANIMDEFS.txt in the root of your mod’s PK3.
switch SWITCHA1 on sound switches/normbutn
pic SWITCHB1
tics 0
switch SWITCHA2 on sound switches/normbutn
pic SWITCHB2
tics 0
And define the tile in your XLAT. Under tiles:
tile 104 {
texturenorth = "SWITCHA1";
texturesouth = "SWITCHA1";
textureeast = "SWITCHA2";
texturewest = "SWITCHA2";
}
That's all the changes you need to make in these files to have one set of elevators. Now, you'll need to do some mapping.