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
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#3
RE: How to add scripted sound

(04-01-2012, 03:26 AM)Xanthos Wrote: 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);
}
wow thanks it works but i had to delete the sanitydamage thing it caused my game to crash but the sound works thanks heeps Smile


04-01-2012, 03:34 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 zombiehacker595 - 04-01-2012, 03:34 AM
RE: How to add scripted sound - by Xanthos - 04-01-2012, 03:36 AM



Users browsing this thread: 1 Guest(s)