Jump to content

trigger box to play a sound


Agnot2006

Recommended Posts

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

I think this would work:

 

scn MolotovSoundSCRIPT

 

short DoOnce

 

Begin onTriggerEnter Player

 

if ( DoOnce == 0 )

PlaySound FXExplosionMolotov

set DoOnce to 1

endif

END

 

 

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...