SoundtrackToggle entity problem

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
manos40
Posts: 11
Joined: Wed Feb 01, 2006 4:20 pm
Location: Athens, Greece

SoundtrackToggle entity problem

Post by manos40 »

Hi,

I' m having problems with the SoundtrackToggle entity. In my level I’ve two of them. With just one, everything works fine. With the second one added, a number of things happens:
1. One of them works the other doesn't
2. Both of them work but the second one plays the soundtrack of the first
3. None of them work and after exiting the level preview I get an error message (realityfactory.exe crash)
4. To activate either of them I have to approach from a certain direction and not from any direction
5. When the specified soundtrack is an mp3 file sometimes it plays sometimes it doesn’t (the same file)


Both soundtracktoggle entities have the same settings (but different sound files)
boneshot: false
bstreamloops: true
range: 150
sleep time: 30

Any ideas on what's wrong?
Is there any other way to change soundtracks during play time?
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

Yes there is another way, if you want to do some scripting you could do this with a script, the following two commands should help you (low level)

(from the RF manual)
RF manual wrote: StartSoundTrack(char *Sound );

Play the audio stream Sound.

StopAllAudioStreams();

Stop all audio streams.
But before you start a new soundtrack you should stop the old with StopAllAudioStreams() because otherwise the sounds will overlap.

About the SoundtrackToggleEnitites i am not sure it maybe their areas are overlapping?
Everyone can see the difficult, but only the wise can see the simple.
-----
Post Reply