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
Can anyone fix this for me, please?
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Can anyone fix this for me, please?

Here you go:


////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "StairArea", "Sound", true, 1);
SetEntityPlayerLookAtCallback("MonsterArm", "ArmScare", false);
}

void ArmScare(string &in asEntity, int alState)
{
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
GiveSanityDamage(8.0f, true);
}


void Sound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("sound", "whatthehell", "StairArea", 0.0, false);
}

void OnEnter()
{
PreloadSound("whatthehell");
}

void OnLeave()
{

}

I rate it 3 memes.
08-07-2012, 08:43 PM
Find


Messages In This Thread
Can anyone fix this for me, please? - by Melvin - 08-07-2012, 08:39 PM
RE: Can anyone fix this for me, please? - by Adny - 08-07-2012, 08:43 PM



Users browsing this thread: 1 Guest(s)