Frictional Games Forum (read-only)
Need some help here :) - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Need some help here :) (/thread-22039.html)



Need some help here :) - Slanderous - 07-06-2013

Hi guys.

Can anyone explain me WHY THIS FUCKING SCRIPT WON'T WORK?
The map loads, and everything works fine except PlaySound, the entity
"reka" is working fine in this script, so I think I fucked up something with the PlaySoundAtEntity...
Can anyone help me? ;/

void HandScare(string &in AsItem, string &in asEntity)
{
SetEntityActive("reka", true);
PlaySoundAtEntity("", "break_wood1.snt", "ScriptArea_6", 0.0, false);
}


RE: Need some help here :) - PutraenusAlivius - 07-06-2013

Code:
PlaySoundAtEntity("", "break_wood.snt", "ScriptArea_6", 0, false);

Should be good. Here's an explanation.

Why does it say break_wood.snt instead of break_wood1.snt? It's because everything that has a number in front of anything (like break_wood1 / break_wood2. If it's _* (*number), then it's okay, don't need to delete it to use in script.) is connected to the original .snt (like break_wood1 belongs to break_wood etc.)


RE: Need some help here :) - Slanderous - 07-06-2013

(07-06-2013, 02:03 PM)JustAnotherPlayer Wrote:
Code:
PlaySoundAtEntity("", "break_wood.snt", "ScriptArea_6", 0, false);

Should be good. Here's an explanation.

Why does it say break_wood.snt instead of break_wood1.snt? It's because everything that has a number in front of anything (like break_wood1 / break_wood2. If it's _* (*number), then it's okay, don't need to delete it to use in script.) is connected to the original .snt (like break_wood1 belongs to break_wood etc.)

Em, So how should it look like?
Anyway thanks for help, but can you post how it must look like?


RE: Need some help here :) - PutraenusAlivius - 07-06-2013

(07-06-2013, 02:05 PM)lazz3r Wrote:
(07-06-2013, 02:03 PM)JustAnotherPlayer Wrote:
Code:
PlaySoundAtEntity("", "break_wood.snt", "ScriptArea_6", 0, false);

Should be good. Here's an explanation.

Why does it say break_wood.snt instead of break_wood1.snt? It's because everything that has a number in front of anything (like break_wood1 / break_wood2. If it's _* (*number), then it's okay, don't need to delete it to use in script.) is connected to the original .snt (like break_wood1 belongs to break_wood etc.)

Em, So how should it look like?
Anyway thanks for help, but can you post how it must look like?

Um, isn't there a code in my post?


RE: Need some help here :) - Slanderous - 07-06-2013

(07-06-2013, 02:07 PM)JustAnotherPlayer Wrote:
(07-06-2013, 02:05 PM)lazz3r Wrote:
(07-06-2013, 02:03 PM)JustAnotherPlayer Wrote:
Code:
PlaySoundAtEntity("", "break_wood.snt", "ScriptArea_6", 0, false);

Should be good. Here's an explanation.

Why does it say break_wood.snt instead of break_wood1.snt? It's because everything that has a number in front of anything (like break_wood1 / break_wood2. If it's _* (*number), then it's okay, don't need to delete it to use in script.) is connected to the original .snt (like break_wood1 belongs to break_wood etc.)

Em, So how should it look like?
Anyway thanks for help, but can you post how it must look like?

Um, isn't there a code in my post?

Huh, i'm such a dumb. Anyway thanks for help Big Grin

EDIT: It still won't work...


RE: Need some help here :) - PutraenusAlivius - 07-06-2013

(07-06-2013, 02:11 PM)lazz3r Wrote:
(07-06-2013, 02:07 PM)JustAnotherPlayer Wrote:
(07-06-2013, 02:05 PM)lazz3r Wrote:
(07-06-2013, 02:03 PM)JustAnotherPlayer Wrote:
Code:
PlaySoundAtEntity("", "break_wood.snt", "ScriptArea_6", 0, false);

Should be good. Here's an explanation.

Why does it say break_wood.snt instead of break_wood1.snt? It's because everything that has a number in front of anything (like break_wood1 / break_wood2. If it's _* (*number), then it's okay, don't need to delete it to use in script.) is connected to the original .snt (like break_wood1 belongs to break_wood etc.)

Em, So how should it look like?
Anyway thanks for help, but can you post how it must look like?

Um, isn't there a code in my post?

Huh, i'm such a dumb. Anyway thanks for help Big Grin

EDIT: It still won't work...

Maybe you name it wrong?