Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monster Play Sound After PathNode!!!!
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#13
RE: Monster Play Sound After PathNode!!!!

(02-14-2013, 05:25 PM)BeeKayK Wrote: Please show me your script

Impossible to handle something you cannot see Wink


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);
}

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
02-14-2013, 05:30 PM
Website Find


Messages In This Thread
RE: Monster Play Sound After PathNode!!!! - by VeNoMzTeamHysterical - 02-14-2013, 05:30 PM



Users browsing this thread: 1 Guest(s)