Jared
11th July 2012, 03:55
This tutorial includes a .iwd along with the files needed. There's detailed descriptions in the .gscs explaining what each thing does.
First, let's get the elevator going, and worry about the scripts later.
Select all "moving" parts which will be your elevator.
1. Right click ~> Script ~> Brushmodel
2. Press "N"
3. Key: targetname, then press tab, Value: ele
4. Press "Enter"
5. When you're done, it should look like this.
http://oi50.tinypic.com/2926wiq.jpg
Now it's time for the trigger, put a trigger around the area you want the player to be able to Press F to activate it.
1. Select the trigger, Right click ~> trigger ~> use touch
2. While the trigger is selected, Press "N"
3. Key: targetname, then press tab, Value: trig_ele
4. Press "Enter"
5. (optional) To have it display a text going up, do this, Key: hintstring, then press tab, Value: Press [Use] to go up
6. When you're done, it should look like this.
http://oi49.tinypic.com/wao74o.jpg
Now once that's done, it's time to work on the scripting. I've placed a working script into the .iwd that you can freely use.
One thing that you're going to want to change is the height.
ele movez (568,7,1.9,5); This line is going to vary depending on your map/height of elevator, go ahead and measure the Z of the elevator.
1. Make a block that goes from the bottom of your elevator to the top of it.
2. Press the xyz button until you can see a Z: amount displayed on the grid.
3. Replace the first # in the ele movez part of the script to the number displayed on radiant.
Opening the mp_ele.gsc inside the mp_sample.iwd will have a description on many things if you're in need of help.
You can delete all comments. The sample .rar including a readme and a .iwd of all this is below!
http://killtube.org/jared/mp_sample.rar
If you still need help, feel free to reply to this with your question, or add my Xfire: jlvulture
~Jared.
First, let's get the elevator going, and worry about the scripts later.
Select all "moving" parts which will be your elevator.
1. Right click ~> Script ~> Brushmodel
2. Press "N"
3. Key: targetname, then press tab, Value: ele
4. Press "Enter"
5. When you're done, it should look like this.
http://oi50.tinypic.com/2926wiq.jpg
Now it's time for the trigger, put a trigger around the area you want the player to be able to Press F to activate it.
1. Select the trigger, Right click ~> trigger ~> use touch
2. While the trigger is selected, Press "N"
3. Key: targetname, then press tab, Value: trig_ele
4. Press "Enter"
5. (optional) To have it display a text going up, do this, Key: hintstring, then press tab, Value: Press [Use] to go up
6. When you're done, it should look like this.
http://oi49.tinypic.com/wao74o.jpg
Now once that's done, it's time to work on the scripting. I've placed a working script into the .iwd that you can freely use.
One thing that you're going to want to change is the height.
ele movez (568,7,1.9,5); This line is going to vary depending on your map/height of elevator, go ahead and measure the Z of the elevator.
1. Make a block that goes from the bottom of your elevator to the top of it.
2. Press the xyz button until you can see a Z: amount displayed on the grid.
3. Replace the first # in the ele movez part of the script to the number displayed on radiant.
Opening the mp_ele.gsc inside the mp_sample.iwd will have a description on many things if you're in need of help.
You can delete all comments. The sample .rar including a readme and a .iwd of all this is below!
http://killtube.org/jared/mp_sample.rar
If you still need help, feel free to reply to this with your question, or add my Xfire: jlvulture
~Jared.