×
Меню
Индекс

MSFD Playing sounds

 
 
[no fix] PlaySound, “sound ID”
 
[no fix] PlaySoundVP, “sound ID”, volume_enum, pitch_enum
 
PlaySound3D, “sound ID”
 
PlaySound3DVP, “sound ID”, volume_enum, pitch_enum
 
"ex_gg_portcullis_02"->Playsound3DVP "Dwemer Door Open" 1.0 1.0
 
 
The PlaySound function plays a sound without any modification. It does not matter to which object the script using the function is attached, the sound will always play at full volume, directly in the player's ear, so to speak.
 
The PlaySound3D function plays a directional sound source. The sound will seem to be emitted by the object to which the script with this function is attached.
 
The "VP" variants of each of these commands allow setting volume and pitch for the sound that is played. Bethesda has not made much use of this, it seems and it’s only ever used with 1.0 set for both, which appears to be the standard anyway. My own experiments showed the sound not playing when I set volume to a variable, but this is no final verdict.
The "sound ID" is the ID listed in the sound window accessed via Gameplay – sounds menu. You can add sounds there (place the .wav file somewhere in Data files/sounds). A good source for sounds on the web is http://www.findsounds.com/. Sounds should be in a certain format (see below) so you might have to change the format in a suitable program if you don't hear a sound in game.