(02-14-2013, 05:25 PM)BeeKayK Wrote: Please show me your script
Impossible to handle something you cannot see
monster name: monsterscene1
script area name: RocksSound
void OnStart()
{
AddEntityCollideCallback("Player", "Text1", "Text1", true, 1);
SetEntityPlayerInteractCallback("DungeonKey", "Scene1", true);
AddEntityCollideCallback("Player", "SoundScene1", "SoundScene1", true, 1);
AddEntityCollideCallback("monsterscene1", "RocksSound", "RocksFunc", true, 1);
}
void Text1(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "Message1", 1);
}
void SoundScene1 (string &in asParent, string &in asChild, int alState)
{
PlayMusic ("02_amb_safe.ogg", true, 1.0, 2, 1, true);
}
void RocksFunc (string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("monsterscene1", "break_wood1.snt", "RocksSound", 0, false);
}