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
Phonograph
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#6
RE: Phonograph

Yes, there is a way for it to sound like it's coming from the phonograph, but there is a problem. Whenever you walk out of hearing range, the audio will stop (which is expected) BUT when you walk back into range, the audio clip will play from the beginning.

You will need to use:

PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);


In the .snt file for your music, you will need to make sure these parameters are met:
Loop="True"
Use3D="True"
Blockable="True"
Priority="0"

These next parameters are unique to your situation, so you will need to set them yourself:
Volume="0.85"
MinDistance="2"
MaxDistance="60"
BlockVolumeMul="0.7"

Just copy a pre-made .snt file from some random audio clip, and rename and match it to your sound file.

As for the waxroll part, I wouldn't really know how to get into the specifics, but sounds like you need to add the SetEntityConnectionStateChangeCallback(string& asName, string& asCallback); after/when you use the waxroll. This will make it so that, until you place the waxroll, the script will have no chance to trigger the music.

Dark Seclusion Here
(This post was last modified: 06-07-2012, 06:15 AM by FragdaddyXXL.)
06-07-2012, 06:09 AM
Find


Messages In This Thread
Phonograph - by TheIcyPickle - 06-07-2012, 01:55 AM
RE: Phonograph - by Damascus - 06-07-2012, 02:03 AM
RE: Phonograph - by TheIcyPickle - 06-07-2012, 02:08 AM
RE: Phonograph - by Adny - 06-07-2012, 03:17 AM
RE: Phonograph - by TheIcyPickle - 06-07-2012, 03:48 AM
RE: Phonograph - by FragdaddyXXL - 06-07-2012, 06:09 AM
RE: Phonograph - by TheIcyPickle - 06-07-2012, 08:31 PM



Users browsing this thread: 1 Guest(s)