Secret door-PLEASE HELP!
Moderator: Moderators
Secret door-PLEASE HELP!
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?
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
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
- Reish Vedaur
- Sergeant
- Posts: 64
- Joined: Sat Apr 26, 2003 10:36 pm
- Location: Illinois
- Contact:
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
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
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 :-/