Page 1 of 1
Secret door-PLEASE HELP!
Posted: Sat Jun 14, 2003 5:23 pm
by Jagdtiger
I am fairly new at this, so I need some help. I have been through all the basic tutorials, also including the one about doors. I am trying to make a (sliding) secret door (a.k.a. a door that blends in perfectly with the wall). The problem is, when I set the door to move right, it does, but the texture of the door conflicts with the texture of that portion of the wall:( If I set the door to move back, it is in the perfect position to move right. I have tried to make move diagonally back and right, but the door doesn't go far enough to the right. What I want to do is to get the door to move back then to the right. Is this possible?
Posted: Sat Jun 14, 2003 5:58 pm
by bdbodger
All you need to do is use scripting for the door instead of func_door . Make a trigger_use to operate the door . Lets say your door is 72 units wide and 8 units thick and the wall is 8 units thick also . Make your door and make it a script_object give it a $targetname such as My_secret_door and for the trigger give it a key: setthread Value: secret_door_move . In your script put
secret_door_move:
$My_secret_door movewest 8 // or east or north or south
$My_secret_door speed 5 // adjust speed here
$My_secret_door waitmove
$My_secret_door movenorth 72
$My_secret_door waitmove
wait 4
$My_secret_door movesouth 72
$My_secret_door waitmove
$My_secret_door moveeast 8
$My_secret_door move
end
Posted: Sat Jun 14, 2003 6:23 pm
by Reish Vedaur
That's a good tip. <evil grin>
Posted: Sat Jun 14, 2003 6:36 pm
by nuggets
you'll need triggerables in there aswell otherwise if triggered while already being triggered, it'll end up in strange places
secret_door_move:
$My_secret_door nottriggerable
$My_secret_door movewest 8 // or east or north or south
$My_secret_door speed 5 // adjust speed here
$My_secret_door waitmove
$My_secret_door movenorth 72
$My_secret_door waitmove
wait 4
$My_secret_door movesouth 72
$My_secret_door waitmove
$My_secret_door moveeast 8
$My_secret_door waitmove
$My_secret_door triggerable
end
Posted: Sat Jun 14, 2003 9:09 pm
by Alcoholic
yeah you can also add another trigger inside to make the secret door shut, closing you in hahahahaha!!!!
