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 isn't playing
trollox Offline
Member

Posts: 215
Threads: 16
Joined: Dec 2011
Reputation: 3
#1
Sound isn't playing

The .hps file script :



void OnStart()
{
FadeOut(0.01);
AddTimer ("", 1, "Fade");
GiveItemFromFile("lantern", "lantern.ent");
for(int i=0;i< 2;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
AddUseItemCallback("", "key_study_1", "metalsilent1", "CrowbarKeyOnDoor", true);
AddUseItemCallback("", "Pokeball_1", "mansion_4", "PokeballDoor", true);
}

void Fade(string &in asTimer)
{
AddTimer ("", 2, "Dream");
AddTimer ("", 0.1, "FadeIn");
}

void FadeIn(string &in asTimer)
{
FadeIn(2);
}

void Dream(string &in asTimer)
{
SetMessage("Messages", "JustDream", 0);
}

void CrowbarKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("metalsilent1", false, true);
PlaySoundAtEntity("", "unlock_door.ogg", "metalsilent1", 0, false);
GiveSanityBoost();
RemoveItem("key_study_1");
}

void PokeballDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_4", false, true);
PlayGuiSound("Picca.snt", 1.0f);
GiveSanityBoost();
RemoveItem("Pokeball_1");
}















////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{
}






And here's the .snt file script :



SOUNDENTITY
SOUNDS
Main
Sound File=Pica.ogg
Main
SOUNDS
PROPERTIES Volume=1 MinDistance=12 MaxDistance=50 Random=1 Interval=0 FadeEnd=False FadeStart=False Stream=False Loop=False Use3D=True Blockable=False BlockVolumeMul=0.7 Priority=0
SOUNDENTITY


I hope you can find the problem.
(This post was last modified: 02-11-2012, 10:00 PM by Your Computer.)
02-11-2012, 09:53 PM
Find


Messages In This Thread
Sound isn't playing - by trollox - 02-11-2012, 09:53 PM
RE: Sound isn't playing - by flamez3 - 02-12-2012, 01:52 AM
RE: Sound isn't playing - by Strembitsky - 02-12-2012, 01:56 AM
RE: Sound isn't playing - by trollox - 02-12-2012, 02:43 AM



Users browsing this thread: 2 Guest(s)