Secret door-PLEASE HELP!

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Jagdtiger
Lance Corporal
Posts: 11
Joined: Sat Jun 14, 2003 3:53 pm

Secret door-PLEASE HELP!

Post 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?
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
User avatar
Reish Vedaur
Sergeant
Posts: 64
Joined: Sat Apr 26, 2003 10:36 pm
Location: Illinois
Contact:

Post by Reish Vedaur »

That's a good tip. <evil grin>
My warning meant nothing. You're dancing in quicksand. Why don't you watch where you're wandering? Why don't you watch where you're stumbling? You're in knee-deep and going in, and you may never come back again.
~Tool.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

yeah you can also add another trigger inside to make the secret door shut, closing you in hahahahaha!!!! :twisted:
Post Reply