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
Script Help Random Sounds while playing
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#5
RE: Random Sounds while playing

The sound part is easy.

Here's an example of how a sound file (.snt) with multiple sounds look like.
<SOUNDENTITY>  
<SOUNDS>      
<Main>          
<Sound File="02_vent_amb1" />        
<Sound File="02_vent_amb2" />        
<Sound File="02_vent_amb3" />        
<Sound File="02_vent_amb4" />        
<Sound File="02_vent_amb5" />        
<Sound File="02_vent_amb6" />      
</Main>  
</SOUNDS>  
<PROPERTIES Volume="0.7" MinDistance="1" MaxDistance="5" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

I used ^ as an example.

And, the timer's don't really need to be random, since the game checks the .snt file, and if it has a similar architecture like the example, it will choose from either sounds listed in it. Randomly.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 10-05-2012, 03:39 PM by Robby.)
10-05-2012, 03:39 PM
Website Find


Messages In This Thread
Random Sounds while playing - by Vic7im - 10-05-2012, 02:55 PM
RE: Random Sounds while playing - by Robby - 10-05-2012, 03:00 PM
RE: Random Sounds while playing - by Vic7im - 10-05-2012, 03:23 PM
RE: Random Sounds while playing - by Kreekakon - 10-05-2012, 03:37 PM
RE: Random Sounds while playing - by Robby - 10-05-2012, 03:39 PM
RE: Random Sounds while playing - by Vic7im - 10-05-2012, 03:54 PM



Users browsing this thread: 1 Guest(s)