Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sounds Loop
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#5
RE: Sounds Loop

Yes to make a looping sound you have to edit the .snt file (it is a normal text file, or a xml file to be precise). Name it to something different when you have edited it, like mysound_scream_loop.snt
There are also settings in the snt file to control if there should be some quite time between each loop (default is 0, which is none) and if it should be random (default is 1, which is always playing, set this to 0.5 for example to get some random chance of the sound playing).

For better control of a looping sound, I usually do not loop in the snt, I use a regular single sound and then I use a timer in script to play the sound as many times as I like it to play, or for as long as the player is within a certain area. This usually works better and gives greater control.

The true/false in PlaySoundEntity is not about looping, it is to specify if the sound should be saved, most of the time you want this to be false as you do not want to save sounds. But things like a fireburning should be saved, so that the sound is played after the fire started burning.
09-20-2010, 04:52 PM
Website Find


Messages In This Thread
Sounds Loop - by Alroc - 09-20-2010, 01:58 PM
RE: Sounds Loop - by Pandemoneus - 09-20-2010, 02:02 PM
RE: Sounds Loop - by Alroc - 09-20-2010, 04:17 PM
RE: Sounds Loop - by Pandemoneus - 09-20-2010, 04:37 PM
RE: Sounds Loop - by jens - 09-20-2010, 04:52 PM
RE: Sounds Loop - by Alroc - 09-20-2010, 06:23 PM
Help about sound - by trancedj - 09-25-2010, 01:05 AM



Users browsing this thread: 1 Guest(s)