How do i make a garage door?

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

Moderator: Moderators

007craft
Corporal
Posts: 49
Joined: Mon Jul 14, 2003 1:39 am

How do i make a garage door?

Post by 007craft »

I downloaded this map thats called door2 from some guy on the forums here and it has a nice garage door.. Can some1 go about telling me how i can make one like that except with a button u push instead of an auto sensor?

here is a link to the thread with the map in it

/forum/viewtopic.php?t=3620&highlight=garage+door
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

hey, hes a great man you could at least call him by his name.. :roll:


make a button, put a trigger_use around it, make the trigger target the door.
007craft
Corporal
Posts: 49
Joined: Mon Jul 14, 2003 1:39 am

Post by 007craft »

well actually i cant get it to work with cut and pasting it.... cause i need to rotate it to face the right way in my map and then it wont open properly.. and also i have no clue how to do what u just said lol
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

script

Post by tltrude »

The script makes it open and close the way it does. So, you would have to change the script thread for that door. It rotates up (or down) and moves in a direction all at the same time.

Change one (or both) triggers to "classname trigger_use" and they will work as switch triggers.
Tom Trude,

Image
007craft
Corporal
Posts: 49
Joined: Mon Jul 14, 2003 1:39 am

Post by 007craft »

yeah i have no clue how to change those.. i can open the script but my entire script file is all copy + paste and i have no clue what any of it means. Perhaps You could go about creating a tutorial step-by-step (with pictures :) ) on how u built your garage door?

what i really want is a garage door that u have to click to open like a door and it will open like youres does. I dont really want those sensors there.. I would like to remove them actually

I know nothing of triggers and how htey work.. below is your script file. perhaps u could change the values i need for me or at least tell me which values i need to change?

garage_door_mover:

$gdoor_hook time 5.8
$gdoor time 5.8

$gdoor_trigger triggerable
$gdoor_trigger waittill trigger
$gdoor_trigger nottriggerable
$gdoor_motor loopsound lighthouse_run
$gdoor playsound m2l1_gate_open
$gdoor_hook moveWest 132
$gdoor_hook move
$gdoor moveWest 136
$gdoor rotateXdown 90
$gdoor waitmove
$gdoor_motor loopsound lighthouse_run wait
wait 20
$gdoor_motor loopsound lighthouse_run
$gdoor playsound m2l1_gate_open
$gdoor_hook moveEast 132
$gdoor_hook move
$gdoor moveEast 136
$gdoor rotateXdown -90
$gdoor waitmove
$gdoor_motor loopsound lighthouse_run wait

goto garage_door_mover

end
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

when you copy code, try to understand what each thing means. when i was still learning the basics, i didnt write anything into my script until i figured out what it meant.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

thread

Post by tltrude »

garage_door_mover:

$gdoor_hook time 5.8
$gdoor time 5.8

$gdoor_trigger triggerable
$gdoor_trigger waittill trigger
$gdoor_trigger nottriggerable
$gdoor_motor loopsound lighthouse_run
$gdoor playsound m2l1_gate_open
$gdoor_hook moveWest 132
$gdoor_hook move
$gdoor moveWest 136
$gdoor rotateXdown 90
$gdoor waitmove

$gdoor_motor loopsound lighthouse_run wait
wait 20
$gdoor_motor loopsound lighthouse_run
$gdoor playsound m2l1_gate_open
$gdoor_hook moveEast 132
$gdoor_hook move
$gdoor moveEast 136
$gdoor rotateXdown -90
$gdoor waitmove

$gdoor_motor loopsound lighthouse_run wait

goto garage_door_mover

end

You must make some kind of effort to understand what the script does. The axis of rotation is X and the directions are West and East.
Last edited by tltrude on Sun Jul 27, 2003 5:33 am, edited 1 time in total.
Tom Trude,

Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

doesnt a goto automatically end the thread?
007craft
Corporal
Posts: 49
Joined: Mon Jul 14, 2003 1:39 am

Post by 007craft »

now i rotated the garage door for my map... dont I need like sout and north now instead of east + west?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

goto

Post by tltrude »

This thread is a goto loop. After the door opens and closes, it start over and waits for the trigger to be activated again.
Tom Trude,

Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

yes!

Post by tltrude »

Now you are getting it!! You may also have to change "rotateXdown" to "rotateYdown" because you are changing the axis of rotation.

Note: "rotateXdown -90" really makes it go up because the number is negitive.
Last edited by tltrude on Sun Jul 27, 2003 5:54 am, edited 1 time in total.
Tom Trude,

Image
007craft
Corporal
Posts: 49
Joined: Mon Jul 14, 2003 1:39 am

Post by 007craft »

oh wait nvm... let me try soemthign first
007craft
Corporal
Posts: 49
Joined: Mon Jul 14, 2003 1:39 am

Post by 007craft »

hmm... when i cut + paste the script exactly without changing anything my door opens but I fliped the door 180 degrees and now my garage door opens the wrong way.. so which value exaclty do i change in the script to make it open in the opposite direction of the direction it currently opens from your map?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

try

Post by tltrude »

Try flipping the directions (West to East, and East to west). The axis should be the same (X), but you may have to change the sign on the numbers (90 or -90).
Tom Trude,

Image
007craft
Corporal
Posts: 49
Joined: Mon Jul 14, 2003 1:39 am

Post by 007craft »

ok i did all that and its working now except for 1 small problem.. when the garage door opens it doenet go up enough.. it only like slides halfway up and to the right so i can duck under the open dorr hovering in the air and so i can jump on top of it.

what do i change to fix that?

EDIT: heres a picture of whats going on

http://www.funtigo.com/oo7craft?b=55797 ... 0&nav=next
Last edited by 007craft on Sun Jul 27, 2003 6:19 am, edited 1 time in total.
Post Reply