Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | chloerek |
So I want to make a button/lever that can turn on stuff like platforms, lights, doors, etc.
The question here is, how do I connect these elements, if I instanciate 5 buttons, and 5 doors how can I do the relations here.
What I have in mind is something like, the button have an export variable called partner or whatever, and when the player activate the button run something like partner.start(), so I can drag in the editor the door or platform into this variable, but didnt find how to do it.