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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Not again ):
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#5
RE: Not again ):

I will, thanks man...


I wonder if some of you could help me with this aswell.

I've done it alot of times, but this time the sound just won't play.
I don't get any error messeages, and I also checked if i used the wrong syntax, but to me all seems to be right.



void OnStart()
{
AddEntityCollideCallback("Player", "VoiceArea_1", "MonsterRoar", true, 1);
AddEntityCollideCallback("Player", "BodyVoiceArea_1", "BodyVoice", true, 1);
}

void MonsterRoar(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "insanity_monster_roar01.ogg", "Player", 0, false);
PlaySoundAtEntity("", "react_pant2.ogg", "Player", 0, false);
}

void BodyVoice(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scare_male_terrified1.ogg.", "ritual_prisoner_1", 0, false);
PlaySoundAtEntity("", "react_pant1.ogg", "Player", 0, false);
GiveSanityDamage(5, true);
}

PS. I also tryed without the .ogg at the soundfiles

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 07-14-2012, 03:08 PM by Lizard.)
07-14-2012, 03:07 PM
Find


Messages In This Thread
Not again ): - by Lizard - 07-14-2012, 12:58 PM
RE: Not again ): - by FlawlessHappiness - 07-14-2012, 01:32 PM
RE: Not again ): - by Lizard - 07-14-2012, 01:34 PM
RE: Not again ): - by FlawlessHappiness - 07-14-2012, 02:13 PM
RE: Not again ): - by Lizard - 07-14-2012, 03:07 PM
RE: Not again ): - by FlawlessHappiness - 07-14-2012, 03:14 PM
RE: Not again ): - by Lizard - 07-14-2012, 03:17 PM
RE: Not again ): - by SilentStriker - 07-14-2012, 10:44 PM



Users browsing this thread: 1 Guest(s)