Jump to content

looping sound script?


Recommended Posts

HI im trying to make a mod at the moment and really suck at scripting, the only script I was planning on using was one where a siren will play over and over when you eiether activate an object like a door or get within a certain distance of an item,

Ive tried looking through the scripts for a play sound command but cant seem to find one.

 

Would someone be able to tell me a simple script for lets say, playing the sound once when a door is opened and youve gone through, thanks

Link to comment
Share on other sites

HI im trying to make a mod at the moment and really suck at scripting, the only script I was planning on using was one where a siren will play over and over when you eiether activate an object like a door or get within a certain distance of an item,

Ive tried looking through the scripts for a play sound command but cant seem to find one.

 

Would someone be able to tell me a simple script for lets say, playing the sound once when a door is opened and youve gone through, thanks

 

 

You want to create a box to apply the script to that will activate when you collide with it. This will go on the other side of the door where the player will run into it.

 

Filter out "CG04SunBlindDummy" from the 'Activator' list, change the id to something else and create a new form. Then select your script from the list after you've saved it. The name of the script in the list will be whatever you replace "SCRIPTNAME" in your script with below.

 

SCN SCRIPTNAME

Short DoOnce

Begin OnTrigger Player
if ( DoOnce == 0 )
PlaySound PUT SOUND ID HERE
Set DoOnce to -1
endif
End

Misc->Sound->Right Click to create new sound, enter an ID (replace "PUT SOUND ID HERE" with the ID), then check the loop option on.

Link to comment
Share on other sites

Ok thanks, ive done all that but it doesnt play the sound when I get to that location, and when I try and play the sound in the sound section of the GECK it says it can not open the file, it is in wav format,

Am i using the wrong type of file?

No, .wav is correct I believe. What exactly is happening when you try to open it?

Link to comment
Share on other sites

it plays fine on windows media player and I have 3 different sirens from various downloads so I dont think its the files themselves. When I go to misc/ sound/ click on my sound, select the sound file. Then I press on play and a messege pops up saying:

Audio: Could not open file siren alarm.wav

Context:DEFAULT

and then the yes to all will disable all warnings for this context.

 

my script is

 

SCN 2sirentest2

 

Short DoOnce

 

Begin OnTrigger Player

if ( DoOnce == 0 )

PlaySound 22siren

Set DoOnce to -1

endif

End

 

 

my sound name is 22siren and the activator is set to collision geometry

I get the same messege when I choose the sound file on the activator itself as well, maybe its just the sound files in not sure, it opens them fine with other programs though.

Link to comment
Share on other sites

ok a quick update, i tested with the sounds already on fallout and they work in game fine with my script, it must be the files themselves, somehow they are not compatible with fallout 3, thanks for the help anyway. Ill have to just use the files already in game, thanks again

Do you have the files in the ...Bethesda\Fallout 3\Data\Sounds\... directory?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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