So yeah, I'm working on a kinda very special proyect, wich I will announce in a few weeks.
The thing is, in a Hallway I have a clock in the center, and I made a custom sound of the clock ticking.
What I did was put the .ogg sound here:
..../custom stories/Madness/Sounds/
then the script:
PlaySoundAtEntity("clock_ticking", "clock_ticking.ogg", "clock_grandfather_1", 0.0, true);
-----
or to make it more clrear, here is the whole script:
void OnStart()
{
AddEntityCollideCallback("Player", "Clocksound", "CollideClocksound", true, 1);
}
void OnEnter()
{
}
void CollideClocksound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("clock_ticking", "clock_ticking.ogg", "Player", 0.0, true); [b]<---This is the command that activates the sound)[/b]
SetSwingDoorClosed("autodoor", true, true);
GiveSanityDamage(5.0f, true);
PlaySoundAtEntity("doorslam", "15_slam_door.snt", "autodoor", 0.0, false);
PlaySoundAtEntity("reactdoor", "react_scare.snt", "Player", 0.0, false);
StartPlayerLookAt ("autodoor", 5, 5, "");
AddTimer("", 2, "stoplook3");
FadeImageTrailTo(1.0f, 10.0f);
FadeRadialBlurTo(0.15f, 10.0f);
AddTimer("", 0.5f, "TimerEndEffects");
StopSound("Rain", 2);
StopSound("Eerie", 2);
/// EVERY COMMAND WORKS EXCEPT THE SOUND ONE.
When I activate this trigger... it simply doesn't sound. Why?? XD
I think everything is right.. isn't it?
I would appreciate help!!