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
Scare Event Help
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#11
RE: Scare Event Help

The correct function of the script goes like this: "PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);"
The right way to do this is:
PlaySoundAtEntity("scratchsound_1", "scare_scratch.snt", "private_room", 0, false);
and then:
StopSound("scratchsound_1", 0);
You didn't have "string& asSoundName" you need to name the sound with a name if you want to make a function to it. And no, the .snt file end is not necessary.


03-10-2012, 05:09 PM
Find


Messages In This Thread
Scare Event Help - by ArcherKiller - 03-09-2012, 09:31 AM
RE: Scare Event Help - by Shives - 03-09-2012, 03:57 PM
RE: Scare Event Help - by Stepper321 - 03-09-2012, 04:02 PM
RE: Scare Event Help - by ArcherKiller - 03-09-2012, 05:28 PM
RE: Scare Event Help - by Datguy5 - 03-09-2012, 10:40 PM
RE: Scare Event Help - by ArcherKiller - 03-09-2012, 11:49 PM
RE: Scare Event Help - by Datguy5 - 03-10-2012, 10:08 AM
RE: Scare Event Help - by Asphex - 03-10-2012, 01:56 PM
RE: Scare Event Help - by ArcherKiller - 03-10-2012, 03:35 PM
RE: Scare Event Help - by Nevicar - 03-10-2012, 04:47 PM
RE: Scare Event Help - by JMFStorm - 03-10-2012, 05:09 PM
RE: Scare Event Help - by Stepper321 - 03-10-2012, 05:12 PM
RE: Scare Event Help - by ArcherKiller - 03-10-2012, 07:37 PM
RE: Scare Event Help - by ArcherKiller - 03-11-2012, 08:31 AM



Users browsing this thread: 1 Guest(s)