Here is one way of doing it:
Make one script mover with an origin (like you do rotating door).
Give it these keyvalues
scriptname door
targetname door
Make one func_invisible_user, one func_door and one target_script_trigger,
Give the trigger these keyvalues
scriptname button
targetname button
target pressed
give the func_door this value
targetname button
and then point the invis_user at the trigger. (it should point at the door also when u do this)
The door is your visual button, put the func_invis_user in front of it.
(You don’t always need having both script- and targetname like this, though SD recommends it.)
use this script:
door
{
spawn
{
wait 200
accum 1 set 0
}
trigger toggle
{
accum 1 trigger_if_equal 0 door open
accum 1 trigger_if_equal 1 door close
}
trigger open
{
faceangles 0 90 0 1000 // or whatever u need
accum 1 set 1
resetscript // stops ET from going back to "toggle" when finished here
}
trigger close
{
faceangles 0 0 0 1000
accum 1 set 0
}
}
button
{
spawn
{
wait 200
}
trigger pressed
{
trigger door toggle
}
}