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
Can't get sound to work at all! Help plz
Armlessninja Offline
Junior Member

Posts: 5
Threads: 1
Joined: Mar 2012
Reputation: 0
#1
Sad  Can't get sound to work at all! Help plz

I have been trying to get this sound script to work I have try messing it around but I just can't get any sounds to work I have follow countless tutorials, looking up common errors, but nothing! I'm not sure is the script or something else. I want to were the player is force to look at something and 2 sounds play plz replay back soon thx Confused

Here is my script:

PHP Code: (Select All)
void OnStart()
{
wakeUp();
PlayMusic("amb_extra01"true0.50f0.6f0false);
SetEntityCallbackFunc("lantern_1""Grunt_Awaken");
}

void wakeUp () {
    
FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    
FadeIn(20);      // Amount of seconds the fade in takes
    
FadeImageTrailTo(22);
    
SetPlayerActive(false);    
    
FadePlayerRollTo(50220220);                 // "Tilts" the players head
    
FadeRadialBlurTo(0.152);
    
SetPlayerCrouching(true);              // Simulates being on the ground
    
AddTimer("trig1"11.0f"beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
    
ChangePlayerStateToNormal();
    
SetPlayerActive(true);
    
FadePlayerRollTo(03333);        // Change all settings to defaults
    
FadeRadialBlurTo(0.01);
    
FadeSepiaColorTo(04);
    
SetPlayerCrouching(false);
    
FadeImageTrailTo(0,1);
}

void Grunt_Awaken(string &in asEntitystring &in type)
{
SetEntityActive("SpotLight_1"true);
SetLevelDoorLocked("LVceller_Door"false);
StartPlayerLookAt("LVceller_Door"5.00f6.00f"");
AddTimer("Stop_Timer"5.00f"Stop");
PlaySoundAtEntity("enabled01""enabled01.snt""Area_2"0false);
PlaySoundAtEntity("react_scare1""react_scare1.snt""Player"0false);
}

void Stop(string &in asTimer)
{
StopPlayerLookAt();

(This post was last modified: 01-03-2013, 10:07 AM by Armlessninja.)
01-02-2013, 04:15 AM
Find Reply
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#2
RE: Can't get sound to work at all! Help plz

Make sure the sounds have .snt at the end in your script. You're putting .ogg.

In Ruins [WIP]
01-02-2013, 04:20 AM
Find Reply
Armlessninja Offline
Junior Member

Posts: 5
Threads: 1
Joined: Mar 2012
Reputation: 0
#3
RE: Can't get sound to work at all! Help plz

(01-02-2013, 04:20 AM)NaxEla Wrote: Make sure the sounds have .snt at the end in your script. You're putting .ogg.

I know I have try .snt already but still nothing thx anyway Big Grin
01-02-2013, 04:21 AM
Find Reply
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Can't get sound to work at all! Help plz

you cannot specify the sounds from the .ogg files... Go to the folder again and check what the .snt files are called. I'm pretty sure it's: enabled.snt and react_scare.snt

Trying is the first step to success.
01-02-2013, 11:46 AM
Find Reply
Armlessninja Offline
Junior Member

Posts: 5
Threads: 1
Joined: Mar 2012
Reputation: 0
#5
RE: Can't get sound to work at all! Help plz

(01-02-2013, 11:46 AM)beecake Wrote: you cannot specify the sounds from the .ogg files... Go to the folder again and check what the .snt files are called. I'm pretty sure it's: enabled.snt and react_scare.snt

THX SO MUCH, it is fixed thx Big Grin
01-03-2013, 10:08 AM
Find Reply




Users browsing this thread: 1 Guest(s)