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
Script aint working
WatzUpzPeepz Offline
Member

Posts: 106
Threads: 12
Joined: May 2011
Reputation: 0
#3
RE: Script aint working

void OnStart()
{
AddEntityCollideCallback("Player", "scare1", "insanity_increase1", true ,1);
}

void insanity_increase1(string &in asEntity, int alState)
{
    PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
    GiveSanityDamage(5.0f, true);
    PlayMusic("05_event_steps.ogg", false, 80, 0, 10, false);
}

I dont think you are to put the spaces between the quotation marks and the commas.

(This post was last modified: 06-09-2011, 09:04 PM by WatzUpzPeepz.)
06-09-2011, 09:03 PM
Find


Messages In This Thread
Script aint working - by xtron - 06-09-2011, 07:13 PM
RE: Script aint working - by DarkEagle - 06-09-2011, 07:25 PM
RE: Script aint working - by WatzUpzPeepz - 06-09-2011, 09:03 PM



Users browsing this thread: 1 Guest(s)