Page 1 of 1

lift doors and sounds

Posted: Fri Jul 04, 2003 3:59 pm
by Shifty
Hi

I'm currently builing a damaged lift for my hospital map and want one of the doors to twitch from left to right continously also i'd like to have the sound of this there to

How would I achieve this????

---------------------------------------------------------------------------------
Shifty is Currently using his brothers 56k dialup as his Blueyonder Broadband Connection is dead - AGAIN!!!!!!!!
---------------------------------------------------------------------------------

Posted: Fri Jul 04, 2003 8:42 pm
by nuggets
$the_door loopsound elevator_gate

mover

Posted: Sat Jul 05, 2003 12:07 am
by tltrude
Make the door a script_object with the targetname "mydoor". Then start this thread under prespawn (thread mydoor_mover).

mydoor_mover:
$mydoor playsound lighthouse_lever
$mydoor moveNorth 32
$mydoor waitmove
$mydoor playsound lighthouse_lever wait
wait .5
$mydoor playsound lighthouse_lever
$mydoor moveSouth 32
$mydoor waitmove
$mydoor playsound lighthouse_lever wait
wait .5
goto mydoor_mover

Adjust the direction, distance, and delay as needed.

Posted: Sat Jul 05, 2003 11:04 am
by Shifty
wow thx guys

Posted: Sun Jul 06, 2003 12:13 pm
by Shifty
Cheers for that guys it works Just as I needed :D