03-14-2013, 08:49 PM
Hey there,
I need help with some sounds and a monster.
Sounds:
On two parts of my map I need to play a sound.
First time:
void Break(string &in asParent, string &in asChild, int alState)
{
FadeInSound("break_wood_metal2.snt", 0, true);
GiveSanityDamage(5.0f, true);
SetEntityActive("enemy", true);
SetEntityActive("prison_section_3", false);
SetEntityActive("prison_section_5", true);
AddEnemyPatrolNode("enemy", "PathNodeArea_100", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_101", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_102", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_103", 2, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_104", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_105", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_106", 0.001, "Idle");
}
I dont know if there I must write something else and not fade in...
Ingame no sound is coming.
And here is the problem with the enemy:
It becomes active, but it dont follows the path nodes.
Same prob. with the sound here:
void killall(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(5.0f, true);
FadeInSound("20_event_darkness.snt", 0, true);
}
I think fade in sound is wrong, but i dont know what to do.
Thx for reading
I need help with some sounds and a monster.
Sounds:
On two parts of my map I need to play a sound.
First time:
void Break(string &in asParent, string &in asChild, int alState)
{
FadeInSound("break_wood_metal2.snt", 0, true);
GiveSanityDamage(5.0f, true);
SetEntityActive("enemy", true);
SetEntityActive("prison_section_3", false);
SetEntityActive("prison_section_5", true);
AddEnemyPatrolNode("enemy", "PathNodeArea_100", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_101", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_102", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_103", 2, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_104", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_105", 0.001, "Idle");
AddEnemyPatrolNode("enemy", "PathNodeArea_106", 0.001, "Idle");
}
I dont know if there I must write something else and not fade in...
Ingame no sound is coming.
And here is the problem with the enemy:
It becomes active, but it dont follows the path nodes.
Same prob. with the sound here:
void killall(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(5.0f, true);
FadeInSound("20_event_darkness.snt", 0, true);
}
I think fade in sound is wrong, but i dont know what to do.
Thx for reading