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 problems
THE/ILL/WILL Offline
Junior Member

Posts: 11
Threads: 4
Joined: Dec 2010
Reputation: 0
#1
sound problems

Hay guys i have been working on some sound scripts, and really have no idea what im doing. Here is my code. Would you guys tell me that im doing wrong? This is the first time i have done any of this kind of stuff so I dont know what even to ask.
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "doorslam_1","Collidedoorslam", true, -1);
}

void Collidedoorslam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("Room_2", true, true);
}

void ScaryVoice()
{
AddEntityCollideCallback("Player", "Room_2","PlaySoundAtEntity", true, -1);
}

void PlaySoundAtEntity(string &in asItem, string &in asEntity)

{
PlaySoundAtEntity("Player", "amb_hunt01", "Door_2", 0, false);

}

////////////////////////////
// Run when entering map
void OnEnter()
{
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");

for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
}
}

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

}
(This post was last modified: 12-01-2010, 07:46 PM by THE/ILL/WILL.)
12-01-2010, 07:44 PM
Find


Messages In This Thread
sound problems - by THE/ILL/WILL - 12-01-2010, 07:44 PM
RE: sound problems - by Frontcannon - 12-01-2010, 07:56 PM
RE: sound problems - by THE/ILL/WILL - 12-01-2010, 08:22 PM
RE: sound problems - by LoneWolf - 12-01-2010, 08:27 PM
RE: sound problems - by THE/ILL/WILL - 12-01-2010, 08:34 PM
RE: sound problems - by Frontcannon - 12-01-2010, 08:47 PM
RE: sound problems - by THE/ILL/WILL - 12-01-2010, 08:58 PM
RE: sound problems - by Frontcannon - 12-01-2010, 09:13 PM
RE: sound problems - by THE/ILL/WILL - 12-01-2010, 10:01 PM
RE: sound problems - by Frontcannon - 12-01-2010, 10:07 PM
RE: sound problems - by THE/ILL/WILL - 12-02-2010, 03:02 AM
RE: sound problems - by Oscar House - 12-02-2010, 03:49 PM
RE: sound problems - by Akumasama - 12-02-2010, 04:04 PM



Users browsing this thread: 2 Guest(s)