Frictional Games Forum (read-only)

Full Version: Music
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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 ?
Is the enemy turning to smoke? Or is it just the music that doesn't play?
the enemy should turn to smoke and sound should be played, he turns to smoke, but sound doesnt play