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

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

script

Post by tltrude »

Post your new thread lines please.
Tom Trude,

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

Post by 007craft »

actually now that i look at it the door seems to be moving backwards further then its suppose to too
007craft
Corporal
Posts: 49
Joined: Mon Jul 14, 2003 1:39 am

Post by 007craft »

$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 moveEast 132
$gdoor_hook move
$gdoor moveEast 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 moveWest 132
$gdoor_hook move
$gdoor moveWest 136
$gdoor rotateXdown 90
$gdoor waitmove
$gdoor_motor loopsound lighthouse_run wait

goto garage_door_mover

there it is. So for i think the hook seems to be moving good
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Origin brush

Post by tltrude »

Did you copy the origin brush for the door? The origin brush changes the center of rotation from the center of the door to the top edge of the door. It, and the door, have to be one script_object. So, if you forgot to copy it, copy the door and the origin brush together.

Without testing it, the script looks right to me.
Tom Trude,

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

Post by 007craft »

u know what.. im an idiot.. lol yeah i forgot the origen brush thanks... now it works perfectly. thank you so much. BTW could u tell me how to get rid of the sensor and have it so i must push a button to open? if that is too much work ill just move the sensors right beside the door so its like it auto opens when u walk up to it
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

trigger

Post by tltrude »

Ok, do you want one trigger or two?

1. Click on the master trigger (the one inside) and change its shape to put it on the wall.

2. Make a fake button that players will look at to use it.

3. Highlight the trigger and press key N.

4. Click on the line that says "classname trigger_multiple".

5. Change the value of that line to "classname trigger_use".

6. Hit enter and the N key again.

That should do it, and you can do the same to the trigger outside if you want two triggers.
Tom Trude,

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

Post by 007craft »

worked like a charm... many thanks my friend.. now im more excited then ever to finish my map
Post Reply