question about doors
Moderator: Moderators
-
JowShmoe
question about doors
Ok, i have a door (Actually a gate) like the one on malta in the demo for SH. what i want to do is make it so there is a button or switch to operate it. how do i connect the door and the trainswitch (the one i want to use) i think it has something to do with targetnames and stuff, that i saw on a tutorial in MOHDesign or Honor Editing, can't remember which. any help would be great! thanks.
Some help
Ok, first place a trigger_use brush over the switch. It should completely enclose the switch. Give it a targetname like 'switch_trigger'. You also need to give the door a targetname, for example 'door'.
Now it's time to script the trigger and the door. I assume you have a general understanding of how scripting works, if you don't tell me and I'll explain.
Make a new thread for the door and trigger, i.e. put the line 'thread door' below level waittill spawn. Then, after the 'end' of your script, add a new thread, e.g.
That should do it, but if it doesn't, make sure to ask another question.
Now it's time to script the trigger and the door. I assume you have a general understanding of how scripting works, if you don't tell me and I'll explain.
Make a new thread for the door and trigger, i.e. put the line 'thread door' below level waittill spawn. Then, after the 'end' of your script, add a new thread, e.g.
Code: Select all
door:
$switch_trigger waittill trigger
$switch_trigger nottriggerable
$door open $switch_trigger
end