Opening/Closing Doors With a Switch

Mapping & modding Fallout Tactics and reviewing maps thereof.
Post Reply
User avatar
Jimmyjay86
Hero of the Glowing Lands
Hero of the Glowing Lands
Posts: 2102
Joined: Thu Apr 18, 2002 4:02 am
Location: Wisconsin
Contact:

Opening/Closing Doors With a Switch

Post by Jimmyjay86 »

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
User avatar
OnTheBounce
TANSTAAFL
TANSTAAFL
Posts: 2257
Joined: Thu Apr 18, 2002 8:39 am
Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
Contact:

Post by OnTheBounce »

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
"On the bounce, you apes! Do you wanna live forever?!"
User avatar
Max-Violence
Wandering Hero
Wandering Hero
Posts: 1221
Joined: Thu Apr 18, 2002 4:15 am
Location: In my own personal vault
Contact:

Post by Max-Violence »

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... }:)
Guilty!
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
Post Reply