Re: Locking Doors
Posted by Sphinx on
Tue May 11th 2004 at 1:29pm
9 posts
11 snarkmarks
Registered:
Dec 23rd 2002
Ok I want to make it so when a button is pressed... A door is unopenable, (Can Be Broken) but is locked so no one can enter or exit. By using a switch. And when the switch is thrown again, the door is unlocked.
Re: Locking Doors
Posted by Orpheus on
Tue May 11th 2004 at 1:42pm
Orpheus
member
13860 posts
2024 snarkmarks
Registered:
Aug 26th 2001
Occupation: Long Haul Trucking
Location: Long Oklahoma - USA
so speakith the last person whom should..
button is targeted to a MM which is targeted to a second MM and the door.
MM #1 fails to activate the door, but MM#2 does..
door opens on second attempt.
crawls back under rock to avoid scoffing
Re: Locking Doors
Posted by Gollum on
Tue May 11th 2004 at 2:02pm
Gollum
member
1268 posts
525 snarkmarks
Registered:
Oct 26th 2001
Occupation: Student
Location: Oxford, England
The button is a func_button. The door is a func_door. You also need an env_global and a multisource.
The initial state of the global determines whether the door starts unlocked or locked (make sure the flag "set intial state" is ticked). Also set the trigger type to "toggle". The global sets some state "state1" (say). The multisource takes this for its "global state master".
The button targets the global, so that every time it is pressed the global will change state. The multisource tracks this change. The door uses the multisource for its master.
Re: Locking Doors
Posted by Leperous on
Tue May 11th 2004 at 2:53pm
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
What's wrong with the good old fashioned method of just using the multisource, without an env_global?
Re: Locking Doors
Posted by Leperous on
Tue May 11th 2004 at 4:18pm
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
Hrm, well that's the way I always did it, but I guess yours means you learn that extra bit more in the process!
Re: Locking Doors
Posted by Gollum on
Tue May 11th 2004 at 5:06pm
Gollum
member
1268 posts
525 snarkmarks
Registered:
Oct 26th 2001
Occupation: Student
Location: Oxford, England
No, your way is better (assuming it works). If I had known that way worked, I would have chosen it :smile:
Re: Locking Doors
Posted by Sphinx on
Sat May 15th 2004 at 8:10pm
9 posts
11 snarkmarks
Registered:
Dec 23rd 2002
So how would i set it up with just the multiscource?
Re: Locking Doors
Posted by Gollum on
Sat May 15th 2004 at 8:49pm
Gollum
member
1268 posts
525 snarkmarks
Registered:
Oct 26th 2001
Occupation: Student
Location: Oxford, England
I dunno, ask the LepMong :heee:
Re: Locking Doors
Posted by Sphinx on
Sun May 16th 2004 at 10:48pm
Posted
2004-05-16 10:48pm
9 posts
11 snarkmarks
Registered:
Dec 23rd 2002
so the doors have to start locked?
Re: Locking Doors
Posted by Leperous on
Sun May 16th 2004 at 10:58pm
Posted
2004-05-16 10:58pm
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
Make a trigger_auto or something target the button (or get the button to start on if you can do that these days?!) and the door should start unlocked. Or I guess use an env_global...
Re: Locking Doors
Posted by Sphinx on
Wed May 19th 2004 at 1:17pm
9 posts
11 snarkmarks
Registered:
Dec 23rd 2002
K um I need to know exactly what to do.. Heres how I want it set up... The door will be unlocked.... when you go inside, if u stand in front of the door, and press "Use" the door will lock. Press it again the door is unlocked, there will be more than 10 of these types of doors, and one with a switch. It's for a Specialist Role Play Map.
Re: Locking Doors
Posted by Myrk- on
Wed May 19th 2004 at 1:50pm
Myrk-
member
2299 posts
604 snarkmarks
Registered:
Feb 12th 2002
Occupation: CAD & Graphics Technician
Location: Plymouth, UK
Theres a tutorial on it I believe, or was...
/me hits Lep with a stick and sends Vash to eat his scabby legs...
On that note- wheres Vash?
Re: Locking Doors
Posted by ReNo on
Wed May 19th 2004 at 2:05pm
ReNo
member
5457 posts
1991 snarkmarks
Registered:
Aug 22nd 2001
Occupation: Level Designer
Location: Scotland
"Gone" with Cassius :rolleyes: