spikensbror Posted September 6, 2009 Share Posted September 6, 2009 I need a bit of help here.So my question is, can i play sound notes through script?If not, let's say i have a script that does PlaySound3D.How do i stop the sound? Hoping for quick reply. Link to comment Share on other sites More sharing options...
BadPenney Posted September 7, 2009 Share Posted September 7, 2009 There is a script that allows notes to be played while hacking the computer inside Tranquillity Lane. You might check that out for ideas. Otherwise, first of all, don't select a sound that loops. If you add a DoOnce type of placemarker you can get the sound to play just one time and stop, else it will contine to play once the conditions of the script have been met. As an example, a script that could be attached to a triggerbox: scn SoundAlarmSCRIPT short DoOnce Begin OnTriggerEnter Player if DoOnce == 0 PlaySound OBJBuzzerBell set DoOnce to 1 endif End Begin OnTriggerLeave Player Set DoOnce to 0 End The first bit plays the bell sound one time. The second bit resets the DoOnce so that the alarm will sound if the trigger is entered again. Link to comment Share on other sites More sharing options...
Recommended Posts