Please or Register to create posts and topics.

multiple triggers

PreviousPage 2 of 2

That's been around since atlease Portal 1. That article was originally written for the TWP wiki many years ago, in fact.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

An other way to make multiple buttons trigger one event is to use math_counter. Set the initial value to 0, maximum value to the number of buttons. Then trigger your event on the counters OnHitMax. The buttons obviously have to add 1 to the counter OnPressed and subtract 1 OnUnpressed. It's a bit more complicated but you can easily add a third button or other requirements.

I wouldn't say using a counter is more complicated, but personally I find it less intuitive. But of course, whatever works best for you is fine. There's no "right" way of doing it.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
PreviousPage 2 of 2