The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Sound script help
cammie827 Offline
Junior Member

Posts: 6
Threads: 1
Joined: Aug 2012
Reputation: 0
#1
Sound script help

Hi all!

I've just beaten the game for the first time, and I have decided to try my hand at a custom story. All was going well until I had to add a sound effect, and it wouldn't play.The game returns no errors, but the sound is not audible. The basic effect I'm going for is you wake up in a room with no sanity, hear creaky footsteps, and pass out. It should then transport you to a torture room where the story begins. The last line of the script is commented out because the map doesn't exist yet Tongue.


void OnStart()
{
PreloadSound("step_walk_wood_squeaky.snt");
PlaySoundAtEntity("steps", "step_walk_wood_squeaky.ogg", "Player", 0.0f, false);
SetPlayerSanity(1);
FadeRadialBlurTo(1.0f, 0.5f);
StartPlayerLookAt("look1", 1.0f, 1.0f, "");
AddTimer("", 15, "fade");
}
void fade(string &in asTimer)
{
FadeOut(1.0);
//ChangeMap("labyrinth_start.map");
}
08-26-2012, 02:18 AM
Find


Messages In This Thread
Sound script help - by cammie827 - 08-26-2012, 02:18 AM
RE: Sound script help - by Adny - 08-26-2012, 02:21 AM
RE: Sound script help - by cammie827 - 08-26-2012, 02:25 AM
RE: Sound script help - by Adny - 08-26-2012, 02:28 AM
RE: Sound script help - by cammie827 - 08-26-2012, 02:32 AM
RE: Sound script help - by Ongka - 08-26-2012, 04:24 AM
RE: Sound script help - by cammie827 - 08-26-2012, 09:50 PM
RE: Sound script help - by Adny - 08-26-2012, 09:58 PM
RE: Sound script help - by cammie827 - 08-26-2012, 11:35 PM
RE: Sound script help - by Adny - 08-26-2012, 11:39 PM
RE: Sound script help - by cammie827 - 08-26-2012, 11:49 PM



Users browsing this thread: 2 Guest(s)