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


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help How to add scripted sound
Xanthos Offline
Senior Member

Posts: 318
Threads: 9
Joined: Mar 2012
Reputation: 8
#2
RE: How to add scripted sound


AddEntityCollideCallback("Player", "DarkRoomScript_1", "ScarySound", true, 1);

void ScarySound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "SOUNDNAME.snt", "EntityPlayedOn", 0, false);

GiveSanityDamage(5.0f);
}

04-01-2012, 03:26 AM
Find


Messages In This Thread
How to add scripted sound - by zombiehacker595 - 04-01-2012, 02:19 AM
RE: How to add scripted sound - by Xanthos - 04-01-2012, 03:26 AM
RE: How to add scripted sound - by Xanthos - 04-01-2012, 03:36 AM



Users browsing this thread: 1 Guest(s)