SteamVR

SteamVR

SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
Learn More
Mantas T 1 26 Jan, 2020 @ 5:21am
best way to turn on a sound.
with a help of good people in this forum (mostly Rectus) i managed to make point_soundevents that are triggered when player starts touching multiple_trigger box. now i want the same but only if one specific light is turned on (its a lamp flickering sound). whats the easiest way to do it? my lamp turns on when a counter reaches spec. number - and it turns on light. is there a filter or smth that i could somehow use this counter value, or light on / off value to allow trigger multiple box to enable sound when player enters area.. any thoughts?
< >
Showing 1-2 of 2 comments
Rectus 13 27 Jan, 2020 @ 2:52am 
If you want the sound to play at the moment the light turns on, just add an output from the same place you turn on the light itself from. If you have multiple lines on one output in an entity, they will all be fired when that output does.

If you want to have it fire from a trigger, you can set the trigger to start disabled, and then enable it with an input.
Mantas T 1 27 Jan, 2020 @ 7:20am 
nice! elegant solution, i think "start disabled" somehow confuses me, to me it would mean entity doesn't work period. anyways, before your answer i somehow didnt thought of such simple and straight forward solution. i tried using func_tank train, with way points and i parented my trigger box to that train :) so i controlled the speed of this train and basically on right conditions trigger box would come from unreachable place in map. stupid :) thank you!
< >
Showing 1-2 of 2 comments
Per page: 1530 50