question about doors

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

Moderator: Moderators

Post Reply
JowShmoe

question about doors

Post by JowShmoe »

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.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Some help

Post by jv_map »

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.

Code: Select all

door:
$switch_trigger waittill trigger
$switch_trigger nottriggerable
$door open $switch_trigger
end
That should do it, but if it doesn't, make sure to ask another question.
Image
Post Reply