| Nothing happens when player collides with area. 
 
				So basically the problem is.When the player collides with an area called Bang nothing happens.Here is my hps file.////////////////////////////
 // Run when entering map
 void OnStart()
 {
 PlayMusic("hall.ogg", true, 1.0f, 1.0f, 1, false);
 SetEntityPlayerLookAtCallback("Areas", "Sign_1", false);
 AddEntityCollideCallback("Player", "Bang", "Scare1", true, 1);
 }
 void Sign_1(string &in asEntity, int alState)
 {
 SetMessage("Signs", "Sign3", 2);
 }
 void Scare1(string &in asTimer)
 {
 PlaySoundAtEntity("", "scare_male_terrified5.ogg", "Player", 0, false);
 CreateParticleSystemAtEntity("", "Phaa", "Particle", false);
 AddTimer("", 0.2, "Thimer");
 }
 void Thimer(string &in asTimer)
 {
 GiveSanityDamage(10.0f, true);
 PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
 }
 ////////////////////////////
 // Run when entering map
 void OnEnter()
 {
 }
 ////////////////////////////
 // Run when leaving map
 void OnLeave()
 {
 }
 Help?
 
 
 
				
(This post was last modified: 04-06-2012, 05:24 PM by Datguy5.)
 |