MissMarilynn
Member
Posts: 74
Joined: Oct 2011
Reputation: 0
|
Sound File isn't working?
void ClockScare(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("explosion", "explosion_rock_large.snt", "clock_grandfather_1", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
StartScreenShake(1, 1.0f, 0.5f, 5.0f);
GiveSanityDamage(5.0f, true);
}
Everything else works except the sound. :/
Just to check: What is suppose to go in the clock_grandfather_1 space? I put an entity...is it suppose to be an area?
|
|
| 01-10-2012 01:58 AM |
|
flamez3
Posting Freak
Posts: 1,320
Joined: Apr 2011
Reputation: 57
|
RE: Sound File isn't working?
No, you can put it on anything that is an entity. I can't see anything wrong with it. May be trying to put it on Player instead of the grandfather clock?
|
|
| 01-10-2012 02:16 AM |
|
Statyk
Modmau5
Posts: 3,601
Joined: Sep 2011
Reputation: 198
|
RE: Sound File isn't working?
Also make sure the grandfather clock's name matches the one in the script. If it helps, try putting it attached to the "Player", if the sound doesn't play, it could be a name issue or a resource issue (refresh Amnesia by restarting it).
|
|
| 01-10-2012 02:50 AM |
|
MissMarilynn
Member
Posts: 74
Joined: Oct 2011
Reputation: 0
|
RE: Sound File isn't working?
I put the clock_grandfather_1 as player.
You two are amazing. It works! Thank you both
|
|
| 01-10-2012 03:30 AM |
|
flamez3
Posting Freak
Posts: 1,320
Joined: Apr 2011
Reputation: 57
|
RE: Sound File isn't working?
(01-10-2012 02:50 AM)Statyk Wrote: refresh Amnesia by restarting it).
Yeh, sounds need for you to restart amnesia (or go to the main menu) for them to take affect.
|
|
| 01-10-2012 03:32 AM |
|