Contoll a gate with a switch
Posted: Tue Jul 29, 2003 3:22 pm
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
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