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"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


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)