Frictional Games Forum (read-only)
Music - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Music (/thread-14242.html)



Music - .eX. - 03-25-2012


void OnStart()

{

SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1","PathNodeArea_1", 3.00,"");
AddEnemyPatrolNode("servant_brute_1","PathNodeArea_2", 0,"");
AddEnemyPatrolNode("servant_brute_1","PathNodeArea_3", 0,"");
AddEntityCollideCallback("servant_brute_1", "ScriptArea_1", "MyFunc1", false, 0);
}
void MyFunc1(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("servant_brute_1", false);
PlaySoundAtEntity("book_pile01_1", "break_glass_large.snt", "book_pile01_1", 0, false);
}

after enemy reaches script area the sound should play at the entity(book) but it does not play, can u help me with that plz ?


RE: Music - ClayPigeon - 03-25-2012

Is the enemy turning to smoke? Or is it just the music that doesn't play?



RE: Music - .eX. - 03-25-2012

the enemy should turn to smoke and sound should be played, he turns to smoke, but sound doesnt play