How do i make a garage door?
Moderator: Moderators
$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
$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
Origin brush
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.
Without testing it, the script looks right to me.
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
trigger
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.
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.
