This concept is taken from Lazerus's Boonville map and was something I was trying to do for a while. In a discussion over at the Interplay mapping forums with Zousug I got on the right track with his suggestion to look at Boonville. So here is how a switch can be used to open and close a door without unlocking it:
Door entity:
-Is locked
-Is lockable
-Chance to unlock=0
-tagname=door
Switch Entity:
-Not on
-tagname=switch
Triggers
1. Open Door:
Condition-Object Script State of switch, checked
Action-Set Object Script State of door, checked
2. Close Door:
Condition-Object Script State of switch, not checked
Action-Set Object Script State of door, not checked
Opening/Closing Doors With a Switch
- Jimmyjay86
- Hero of the Glowing Lands
- Posts: 2102
- Joined: Thu Apr 18, 2002 4:02 am
- Location: Wisconsin
- Contact:
- OnTheBounce
- TANSTAAFL
- Posts: 2257
- Joined: Thu Apr 18, 2002 8:39 am
- Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
- Contact:
I wish I'd known you were in need of this, JJ86, I could have squared you away on the spot.
Oh, remember to check/tick "Preserve" for these triggers. Otherwise you end up w/the problem that Rock Falls (Mission 3) in the core campaign had: you could only open the door once.
Of course, if you want to be really mean, you can substitute a Science Switch for the standard Switch, and have it require a key... }:)
OTB
Oh, remember to check/tick "Preserve" for these triggers. Otherwise you end up w/the problem that Rock Falls (Mission 3) in the core campaign had: you could only open the door once.
Of course, if you want to be really mean, you can substitute a Science Switch for the standard Switch, and have it require a key... }:)
OTB
"On the bounce, you apes! Do you wanna live forever?!"
- Max-Violence
- Wandering Hero
- Posts: 1221
- Joined: Thu Apr 18, 2002 4:15 am
- Location: In my own personal vault
- Contact:
Guilty!OnTheBounce wrote:Of course, if you want to be really mean, you can substitute a Science Switch for the standard Switch, and have it require a key... }:)
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006