Hello again everyone.
I'm trying to script the following, but uncertain of where I would start:
-I have a large, maze-like area with many doors in it. Half of them are tagged "mazedoor1" and half of them are tagged "mazedoor2".
-All of the doors tagged mazedoor1 are set to open as their initial position; those tagged mazedoor2 are set to closed and locked.
Goal: I'd like to make it so that the two sets of doors alternate between open/unlocked and closed/locked by themselves, automatically, every three seconds.
I am not quite sure how to accomplish this. Would it be some sort of onhearbeat script? Would it involve a while loop? Would it involve a custom function? Would it be one big script governing all the doors, or would each door have a script attached to it? Not sure what to do. Maybe you guys have a few suggestions.
Once I've got the solution under my belt, I may want to make it so that there are additional sets of doors opening on a certain basis. We'll see.
Thanks!
Modifié par dr. b, 28 octobre 2013 - 11:43 .