Clever door

sectordub

  • Posts: 2
Hello,

I' m trying to create a system of doors who are open when the player push a button.
But what I want to do is if I push the button A the door A open and the door B get close.
ANd If I press the button B the door B open and the door A get close.
Can you help me with that?

Thanks

Arnaud

dtrungle

  • Posts: 1938
Something like this should work, assuming your doors are already placed before this runs.

If buttonA is pushed
  For each doorA in scene
    -make doorA open
  For each doorB in scene
    -make doorB close
End