The problem is that I don't think that a trigger_multiple is the best solution because the portable surface is accessable at any time. Is it possible to use another sort of solution where the sound playes when the player gets through the first portal and out of the second, some kind of true/false solution? Thanks in advcance!
[SOLVED] Thrust fling sfx on launch
Alternatively, you can use a func_portal_detector + the OnPortalPlaced output + a math_counter or coop_manager to detect when players have their portals in certain places. I use this method a lot to check if players have solved puzzles and therefore should trigger outro scenes.
EDIT: See Felix's post.
FelixGriffin wrote:
Use a trigger_catapult with the "Only Check Velocity" flag. This just tells you whether something came through in the right direction with sufficient speed or not (it's used in the Wheatley monitor instance to detect flying physics objects).
Thanks! I've been trying to get the trigger_catapult to work. I've checked the "Only Check Velocity" flag and the "Use Threshold Check" flag (since the first flag tells me to) but it doesn't work. Are there any other parameters I should check with? How does the trigger know when to trigger outputs?
- When something enters the trigger, it does the standard filter checks.
- If those checks are passed, it looks at the object's velocity and direction and compares them to the threshold check.
- If that passes, it fires the OnCatapulted output.
- After firing the output, if the "Only Check Velocity" flag is NOT enabled, it sets the object's velocity to its fling parameters.
A faith plate has no threshold check, a "fling helper" does, and a velocity sensor has Only Check Velocity as well.
But I wonder, which parameter checks for the players speed?
Is this correct? I created a brush at the exiting portal area, with the trigger texture, set it to a trigger_catapult, changed "Only Check Velocity" to "Yes", "Use Threshold Check" to "Yes" and "Entry Angle Tolerance" to "-1".
On the Outputs I use the following:
OnCatapulted | catapult_sfx | PlaySound
Use Player Speed of whatever you want, Lower Threshold of 0, and Upper Threshold of 1.