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
#16
RE: Need some help with this script....

Ok so now it's like this:
void OnStart()
{
AddEntityCollideCallback("Player", "MonsterDoor", "CollidePlayerWithMonsterDoor", true, 1);
}
void CollidePlayerWithMonsterDoor(string &in asParent, string &in asChild, int alState)
{
AddDebugMessage("Debug Message: Area Collided! Now ScaryDude must be activated!", false);
}
SetEntityActive("Scarydude", true);
FadeRadialBlurto(1.0f, 1.0f);
PlaySoundAtEntity("MonsterDoor", "react_scare", "Player", 0.0, false);
ShowEnemyPlayerPosition("Scarydude");
}

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

}

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

}

Anything wrong? What I think might be wrong is the debug messages place in the script, I think I put it in the wrong place since it's not working at all.

''Sick, twisted child... You'll burn for this!''
06-19-2011, 03:13 PM
Find


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



Users browsing this thread: 1 Guest(s)