Music
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 ?
|