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
Need some help here :)
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
Need some help here :)

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);
}
07-06-2013, 01:55 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Need some help here :)

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.)

"Veni, vidi, vici."
"I came, I saw, I conquered."
07-06-2013, 02:03 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#3
RE: Need some help here :)

(07-06-2013, 02:03 PM)JustAnotherPlayer Wrote:
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?
07-06-2013, 02:05 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Need some help here :)

(07-06-2013, 02:05 PM)lazz3r Wrote:
(07-06-2013, 02:03 PM)JustAnotherPlayer Wrote:
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?

"Veni, vidi, vici."
"I came, I saw, I conquered."
07-06-2013, 02:07 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#5
RE: Need some help here :)

(07-06-2013, 02:07 PM)JustAnotherPlayer Wrote:
(07-06-2013, 02:05 PM)lazz3r Wrote:
(07-06-2013, 02:03 PM)JustAnotherPlayer Wrote:
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...
(This post was last modified: 07-06-2013, 02:15 PM by Slanderous.)
07-06-2013, 02:11 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: Need some help here :)

(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:
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?

"Veni, vidi, vici."
"I came, I saw, I conquered."
07-06-2013, 03:40 PM
Find




Users browsing this thread: 2 Guest(s)