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
Need some help with this script....
Doctorcheese Offline
Senior Member

Posts: 272
Threads: 28
Joined: Jan 2011
Reputation: 0
#4
RE: Need some help with this script....

Oh snap.. missed that, I'll try editing so there's only one.
Ok so that didn't work. Here's how my entire .hps file for this map looks like;

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player","MonsterDoor","CollidePlayerWithMonsterDoor");
}

void CollidePlayerWithMonsterDoor (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("ScaryDude", true);
ShowEnemyPlayerPosition(''ScaryDude'');    
FadeRadialBlurto(float 1, float 1);
PlaySoundAtEntity(''MonsterDoor'', ''react_scare6.ogg'', ''Player'', true);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

Any errors? The script isn't working at all, nothing happens when I pass the script area. Also might it be the .ogg sound file in the script? Can it playe .ogg's or do they have to be .SNT?

''Sick, twisted child... You'll burn for this!''
(This post was last modified: 06-18-2011, 06:49 PM by Doctorcheese.)
06-18-2011, 06:45 PM
Find


Messages In This Thread
RE: Need some help with this script.... - by Doctorcheese - 06-18-2011, 06:45 PM



Users browsing this thread: 1 Guest(s)