Page 1 of 1
3 Way Folding Doors
Posted: Mon Oct 20, 2003 7:15 am
by silversound
Bind
Posted: Mon Oct 20, 2003 7:47 am
by tltrude
You have to bind one door to the other in the script.
$ffdoor_leftcenter bind $ffdoor_left
$ffdoor_rightcenter bind $ffdoor_right
Giving them targetnames may switch off the, normally built-in, triggers for the doors. So, you will have to make a trigger_use that targets one of the doors. The others should open because they are all touching eachother. ff = fan fold.
Posted: Mon Oct 20, 2003 7:59 am
by jv_map
Hmm I made exactly the same thing for the moh:om mod, but as it's not yet released I can't give you a lot of info

it's fairly complicated I can say...
Posted: Mon Oct 20, 2003 9:56 am
by silversound
Let me know when you release it. Thank you tltrude for the info, i will add it to my note pad of good tips!
Opps!
Posted: Mon Oct 20, 2003 7:03 pm
by tltrude
Well, you can remove my first post from your "Good Tips" folder because using function rotating doors did not work, and even locked up my computer!
The doors and their origin brushes must be script_objects. They are opened and closed in the script. I have added a fanfold door to my "door2" tutorial map (underground). The zip includes a playable pk3, the .map file, and a text version of the script.
http://pages.sbcglobal.net/tltrude/Temp/door2.zip
You can change the direction the doors open by reversing the polarity of all the angles in the script, and moving the center origin brushes to the other side in the map. My doors stay open untill a player hits "use" again. And, there are "NOT SOLID" handles attached to the center doors.
Posted: Mon Oct 20, 2003 10:49 pm
by silversound
Man I love this place!
Here is some sunshine to blow up all at .maps asses (even the noobs)
swoooossshh

????
Posted: Tue Oct 21, 2003 1:18 am
by tltrude
I'm not sure what you mean by that, but you are welcome, I think.
Posted: Tue Oct 21, 2003 7:34 am
by silversound
Compliment all the way!
Posted: Wed Oct 22, 2003 1:59 am
by nuggets
i know it's been answered but i'll input anyway :S...
the local.ffdpos = 0 i'd make level.ffdpos = 1, as it's being used as a global variable not an entities variable, or even better, assign it to the door
$fanfold_left.pos = 0
then by having the variable attached to the door, the same script can be used for any number of doors if you apply a set/group number, ie
if ($fanfold_left.size > 1)
{
for (local.i=1;local.i<=$fanfold_left.size;local.i++)
{$fanfold_left_centre[local.i] bind $fanfold_left[local.i]}
//etc...
}
just my theory, but as you know i always like to complicate things
