12-16-2014, 12:06 PM
void OnStart()
{
PlayMusic("Search_Brute", true, 5, 3.0, 4, true);
AddEntityCollideCallback("Player", "Script", "UseScript", true, 1);
AddEntityCollideCallback("Player", "Script_1", "Sound", true, 1);
}
void Sound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scare_wood_creak.snt", "Player", 1.2, false);
}
void UseScript(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("SlenderMan", true);
}
------------------------------------------------------------------------------------------------------
this is my script. what can i do to fix it. when i walk into the script area it will not play the sound.
{
PlayMusic("Search_Brute", true, 5, 3.0, 4, true);
AddEntityCollideCallback("Player", "Script", "UseScript", true, 1);
AddEntityCollideCallback("Player", "Script_1", "Sound", true, 1);
}
void Sound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scare_wood_creak.snt", "Player", 1.2, false);
}
void UseScript(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("SlenderMan", true);
}
------------------------------------------------------------------------------------------------------
this is my script. what can i do to fix it. when i walk into the script area it will not play the sound.