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
Play custom sound at area?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Play custom sound at area?


You need to go into the sounds folder and create a fmscream1.snt file. Than add this:




<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="fmscream1.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="20" MaxDistance="100" Random="1" Interval="5" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.8" Priority="0" />
</SOUNDENTITY>

Than instead of this:
PlaySoundAtEntity("", "fmscream1", "Player", 0, false);


Do this:

PlaySoundAtEntity("", "fmscream1.snt", "Player", 0, false);




12-03-2011, 07:53 AM
Find


Messages In This Thread
Play custom sound at area? - by FreshKorruption - 12-03-2011, 07:27 AM
RE: Play custom sound at area? - by flamez3 - 12-03-2011, 07:53 AM
RE: Play custom sound at area? - by flamez3 - 12-03-2011, 03:23 PM
RE: Play custom sound at area? - by Statyk - 12-03-2011, 07:30 PM



Users browsing this thread: 3 Guest(s)