I am trying to create a switch that will not activate unless the player has a party member with them. The idea is that the player will step on one switch and the party member that follows will "step" on the other.
I know party members can't actually interact with switches, so I designed it so that the switch would check if the player is facing one of two directions (left or right), while simultaneously checking if there is another party member. Once the switches are activated, it will cause the crystals on the right of the room, to play an animation and disappear, allowing access to the right side of the room. Otherwise, the floor switch will not remain depressed once the solo character walks off it. Here is a picture to better visualize what I'm trying to do:
However, I'm having trouble implementing it properly.
I know party members can't actually interact with switches, so I designed it so that the switch would check if the player is facing one of two directions (left or right), while simultaneously checking if there is another party member. Once the switches are activated, it will cause the crystals on the right of the room, to play an animation and disappear, allowing access to the right side of the room. Otherwise, the floor switch will not remain depressed once the solo character walks off it. Here is a picture to better visualize what I'm trying to do:
However, I'm having trouble implementing it properly.