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
Walking into sound area issue
Tiiwh Offline
Junior Member

Posts: 47
Threads: 6
Joined: Nov 2011
Reputation: 1
#1
Question  Walking into sound area issue

Hi Blush
I need some help with my sounds! I am making a custom story in Amnesia and I'm holding on to the old sounds and music that are already inside the game. So thanks to http://www.frictionalgames.com/forum/user-15434.html I can now easily put sounds in the level editor and script it. There is only one small little problem.
When I walk into the area where I placed the sound it starts, but then when the sound should stop and not loop it still loops and I have tried to put it into true and false, but nothing works. Here is the sound script:
void OnStart()
{
AddEntityCollideCallback("Player", "Sound_Area1", "GetSound_Area1", true, 1);
}
void GetSound_Area1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "23_saw3.snt", "Sound_Area1", 0.0f, true);
}
---
I would really appreciate it if someone could lend me a hand with this, I think it might be quite easy to solve, but since I'm a newbie I don't quite get it. Sleepy
Thanks.

[Image: deaceaf76907.gif]
(This post was last modified: 11-29-2011, 11:48 AM by Tiiwh.)
11-26-2011, 01:24 PM
Find


Messages In This Thread
Walking into sound area issue - by Tiiwh - 11-26-2011, 01:24 PM
RE: Walking into sound area issue - by Tanshaydar - 11-26-2011, 02:19 PM
RE: Walking into sound area issue - by Tiiwh - 11-26-2011, 10:44 PM



Users browsing this thread: 1 Guest(s)