View unanswered posts | View active topics


Post a new topicPost a reply
Previous topic | Next topic 

  Beginner BeginnerMember since: 09.06.2012, 01:21Posts: 81Location: Germany Likes: 0
 

 Post Topic: Play sounds after a random time
PostPosted 27.07.2012, 17:42 
I tried to create an helper which has to play a sound after a random while. When sound played, the "Random" Node should generate a new time for the timer to play the sound another time. And so on.

After the first time it stops forever, it doesn't play it another time :/ how do I fix this?

(Console says: Sound cannot be played)

Thanks for every answer


(Start Node outpot goes to timer reset,
math random output goes to period input of timer,
delay output goes to Logic:Any input 2)
Attachments:

sample.png



  Beginner BeginnerMember since: 05.01.2012, 18:16Posts: 48Location: Austria Likes: 0
 

 Post Topic: Re: Play sounds after a random time
PostPosted 28.07.2012, 18:32 
Try adding a LocalPlayer node and connecting the "entityId" of this node to the "Input Entity" of your PlaySound node.
  Trainee TraineeMember since: 13.10.2011, 00:35Posts: 140 Likes: 1
 

 Post Topic: Re: Play sounds after a random time
PostPosted 29.07.2012, 11:25 
that's what RamdomSoundVolumes have been made for...

http://freesdk.crydev.net/display/SDKDO ... e+Entities
User avatar   Skilled Modder Skilled ModderMember since: 29.05.2010, 11:46Posts: 714Location: Germany Likes: 6
 

 Post Topic: Re: Play sounds after a random time
PostPosted 05.08.2012, 20:41 
Also mp3 is not a good format you can only play it once since the fmod(ISound implementation in the freesdk is buggy. Better convert it using fmod to a soundevent.


  Beginner BeginnerMember since: 09.06.2012, 01:21Posts: 81Location: Germany Likes: 0
 

 Post Topic: Re: Play sounds after a random time
PostPosted 06.08.2012, 16:17 
Thank you Hendrik, thats it!
Danke ;)