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
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", true, 0.50f, 0.6f, 0, false);
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(2, 2);
    
SetPlayerActive(false);    
    
FadePlayerRollTo(50, 220, 220);                 // "Tilts" the players head
    
FadeRadialBlurTo(0.15, 2);
    
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(0, 33, 33);        // Change all settings to defaults
    
FadeRadialBlurTo(0.0, 1);
    
FadeSepiaColorTo(0, 4);
    
SetPlayerCrouching(false);
    
FadeImageTrailTo(0,1);
}

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

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


Messages In This Thread
Can't get sound to work at all! Help plz - by Armlessninja - 01-02-2013, 04:15 AM



Users browsing this thread: 1 Guest(s)