Agnot2006 Posted May 7, 2009 Share Posted May 7, 2009 Can anyone help with how to use a trigger box to play a sound from the vanilla list I think really I can see how the on trigger script would work but don’t know how to play the sound file preferably looped or random in a script.Can anyone help. Also does anyone know of a tutorial on how to create Pipboy Icons using Photoshop? Link to comment Share on other sites More sharing options...
Cipscis Posted May 7, 2009 Share Posted May 7, 2009 You'll want to use the PlaySound or PlaySound3D function for that. Cipscis Link to comment Share on other sites More sharing options...
Agnot2006 Posted May 7, 2009 Author Share Posted May 7, 2009 Thank You I'll look it up Link to comment Share on other sites More sharing options...
BadPenney Posted May 7, 2009 Share Posted May 7, 2009 I think this would work: scn MolotovSoundSCRIPT short DoOnce Begin onTriggerEnter Player if ( DoOnce == 0 ) PlaySound FXExplosionMolotov set DoOnce to 1 endifEND Add the DoOnce to keep it from playing over and over. Insert any sound name in the place of FXExplosionMolotov. If you want it to make sound every time it is triggered you could add a timer that resets DoOnce to 0, or an "if ( player.getdistance > ## ) to reset DoOnce. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.