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

(06-18-2011, 09:37 PM)Tanshaydar Wrote: AddDebugMessage(string& asString, bool abCheckForDuplicates);
For this and more: http://wiki.frictionalgames.com/hpl2/amn..._functions

Simply, add a:
AddDebugMessage("Debug Message: Area Collided! Now ScaryDude must be activated!", false);
or something like this in your CollidePlayerWithMonsterDoor function, and when starting the map, check the "Show Debug Messages" in debug menu.

Like this?

////////////////////////////
// Run first time starting map
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);
ShowEnemyPlayerPosition("Scarydude");    
FadeRadialBlurTo(1.0f, 1.0f);
PlaySoundAtEntity("MonsterDoor", "react_scare.snt", "Player", 0.0f, true);
}

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

}

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

}

It's not working if I do that, maybe the area doesn't collide after all... If that is the case, how could I make it collide with the player?

(Damn this is turning into a big thread for one simple script Big Grin)

''Sick, twisted child... You'll burn for this!''
06-18-2011, 10:08 PM
Find


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



Users browsing this thread: 1 Guest(s)