PDA

View Full Version : Making an toggle switch: what's the path of least resistance?



legacy-UserEquals1D10T
07-30-2003, 09:49 PM
Okay basically I have a switch and a fan.

Here's what I want to do:
Hit the switch once the fan stops rotating
Hit the switch again the fan starts rotating

Currently I can get the switch to PAUSE the fan (like a when a lift moves it "pauses" at the top position) but I can't get the toggle functionality.

Is there any way to do this without making a new class?

Thanks

legacy-Mr Evil
07-30-2003, 09:53 PM
How about having two fans: one rotating and one stationary. One is in view, the other hidden. Hitting the switch moves the hidden fan into view and hides the other.

Angel_Mapper
07-30-2003, 10:09 PM
Originally posted by Mr Evil
How about having two fans: one rotating and one stationary. One is in view, the other hidden. Hitting the switch moves the hidden fan into view and hides the other. No coding required. :D :up:

legacy-UserEquals1D10T
07-30-2003, 11:59 PM
Evil: But I still have the probem of one switch acting as a toggle between two states. Maybe I'm missing something but I can't see a solution to that in the canned trigger / mover classes.