I did not know if i post this by mapping or scripting, b
I want to make a door / gate that is can close / open with a switch (just like in mp_ardennes_TOW
i understand the script file
ardennes_gate_switch:
if( level.bGateSwitchUp == 1 )
{
$ardennes_gate_switch_origin speed 1.0
$ardennes_gate_switch_origin rotatexdownto 180
$ardennes_gate_switch_origin waitmove
$ardennes_gate_switch_originplaysound levator_run
level.bGateSwitchUp = 0
}
else
{
$ardennes_gate_switch_origin rotatexupto 0
$ardennes_gate_switch_origin waitmove
level.bGateSwitchUp = 1
}
end
But how do i make the doorand switch in radiant, so that it can open / close with a switch
Martijn_NL
Contoll a gate with a switch
Moderator: Moderators
- martijn_NL
- Map Reviewer
- Posts: 156
- Joined: Mon Apr 14, 2003 5:33 pm
- Location: The Netherlands
- Contact:
Contoll a gate with a switch
Mapping 4 life
gates
You can make your gates just like any other door but set the flag called "targeted", so it wont open with the use key. Give both gates a targetname. In your script you can put something like this:
$mygate open // or close
This tutorial map has a door with two switches to open and close it. So you can just copy what you need.
http://pages.sbcglobal.net/tltrude/Temp ... ngdoor.zip
$mygate open // or close
This tutorial map has a door with two switches to open and close it. So you can just copy what you need.
http://pages.sbcglobal.net/tltrude/Temp ... ngdoor.zip
- martijn_NL
- Map Reviewer
- Posts: 156
- Joined: Mon Apr 14, 2003 5:33 pm
- Location: The Netherlands
- Contact:
It has two
It has two script origins, "fake_player1" and "fake_player2" on either side of the door. But, you really only need one, if there is only one switch.

