Here is a quick example, don't forget to put the origin texture if you use a rotating door
(example for a double rotating doors)

then the script (example)
secret_door()
{
wood_door1 = getEnt("wood_door1", "targetname"); //BIG DOORS
wood_door2 = getEnt("wood_door2", "targetname"); //BIG DOORS
trigger = getent ("your_door","targetname"); // example
trigger waittill ("trigger");
wood_door1 rotateYaw( -130, 1.4 ); // RotateYaw( <yaw angle>, <time>, <acceleration time>, <deceleration time> )
wood_door2 rotateYaw( 130, 1.4 );
sound_ent = spawn("script_origin", wood_door1.origin); // add a sound
wait_network_frame();
sound_ent playsound("door_wood9"); // alias
wood_door1 NotSolid();
wood_door1 connectpaths();
wood_door2 NotSolid();
wood_door2 connectpaths();
}
If you want to add a slide door you can remove the rotate function by movex (-130,1.4,0.1,2); //MoveZ( <zvalue>, <time>, <acceleration time>, <deceleration time> )
//(movey and movez also works that depend of your angles)