Jump to content

PlaySound SoundName


LithianLord

Recommended Posts

So for the PlaySound SoundName i would write a snippit of:

 

if DoOnce == 0
     PlaySound \Data\Sound\fx\FXMySound.wav
         set DoOnce to 1
  endif

 

?

No.

 

I'm not sure that I can explain more clearly than I have already attempted. A sound is like any other object. If you create a piece of custom armor then you first create its object name in the GECK. Say I make KevlarVest as a new armor. I open an edit window for a new object, give it an item ID like KevlarVest and then I list the directory locations of the .NIF and .DDS files that are my custom files. Then I don't have to include those directory locations in a GECK script, just the Item ID. ( player.additem KevlarVest 1 ).

 

It is the same routine with sound files.

 

if DoOnce == 0
     PlaySound KevlarVestHit
         set DoOnce to 1
  endif

 

Oh I apologize. I mis-read it and now it all works fine. Thank you for the help :thumbsup:

Link to comment
Share on other sites

Anyway to end Playsound on certain trigger? I was thinking removeScriptPackage but nothing I find really helps.

 

I'm trying to run a loop sound only when player is in a certain cell.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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