-
Notifications
You must be signed in to change notification settings - Fork 0
An OR scripting node is used to see if either of two conditions are 'true' at any time.
1> Signal 1: An incoming signal that moves between 0 and 1
2> Signal 2: An incoming signal that moves between 0 and 1
1> Output: 1 only if either or both incoming signals are non-zero.
This node is used if you want to check if any one of two things are true, or both are true.
If you have more than two different conditions, you can nest several OR nodes together (where one OR node takes an input from another OR node).
If you have two keys in your level, you might want to block the Finish with a Door that only opens when the Player has collected any of the keys.
You can get the IS ACTIVATED from each key and put them into an OR node, then connect the output of the OR into the ACTIVATE for the door.
This will then only open the door if the player has collected either or both of the keys.