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
My sound won't play.
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#1
My sound won't play.

Hey guys, i'm making a custom story and I have a problem... A sound won't play. Does anyone find a problem in my script?



void OnStart()
{
PreloadSound("doorbell.snt");
SetEntityPlayerInteractCallback("doorbell", "doorbellsound", true);
SetEntityPlayerLookAtCallback("sign", "signtext", false);
}

void doorbellsound(string &in item)
{
PlaySoundAtEntity("", "doorbell.snt", "doorbell", 0, false);
PlaySoundAtEntity("", "scare_steps_big.snt", "door1", 0, false);
AddTimer("dingdong", 6, "bobishere");
AddTimer("explode", 8, "explodedoor");
}

void bobishere(string &in asTimer)
{
SetEntityActive("servant_grunt_2", true);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_2", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_3", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_4", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_5", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_6", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_7", 0, "Idle");
PlaySoundAtEntity("", "amb_alert.snt", "door1", 0, false);
}

void explodedoor(string &in asTimer)
{
SetPropHealth("door1", 0.0f);
StartScreenShake(0.08f, 1.5, 0.5, 1.0);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0, false);
PlaySoundAtEntity("", "sanity_damage.snt", "Player", 0, false);
PlaySoundAtEntity("", "hurt_pant.snt", "Player", 0, false);
GiveSanityDamage(10, true);
}

void OnEnter()
{
}

void OnLeave()
{
}

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
05-18-2012, 02:18 AM
Find


Messages In This Thread
My sound won't play. - by Wapez - 05-18-2012, 02:18 AM
RE: My sound won't play. - by Xanthos - 05-18-2012, 02:31 AM
RE: My sound won't play. - by Wapez - 05-18-2012, 09:06 AM
RE: My sound won't play. - by Sazureth - 05-18-2012, 02:14 PM
RE: My sound won't play. - by FragdaddyXXL - 05-18-2012, 08:55 PM



Users browsing this thread: 1 Guest(s)