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....
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#17
RE: Need some help with this script....

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()
{

}

06-19-2011, 04:01 PM
Website Find


Messages In This Thread
RE: Need some help with this script.... - by Tanshaydar - 06-19-2011, 04:01 PM



Users browsing this thread: 2 Guest(s)