xtron
Senior Member
Posts: 402
Threads: 37
Joined: May 2011
Reputation:
2
|
Script aint working
I tried everything but I can't get my script to work! ;(
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);
}
thanks in advance.
Dubstep <3
|
|
06-09-2011, 07:13 PM |
|
DarkEagle
Junior Member
Posts: 15
Threads: 3
Joined: Jun 2011
Reputation:
0
|
RE: Script aint working
void OnStart()
{
AddEntityCollideCallback("Player" , "scare1" , "insanity_increase1" , true , 1);
}
void insanity_increase1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
PlayMusic("05_event_steps.ogg", false, 80, 0, 10, false);
}
Maybe, now?
Some time's people aren't people!
In Developement:Dark Path 13%
(This post was last modified: 06-09-2011, 07:25 PM by DarkEagle.)
|
|
06-09-2011, 07:25 PM |
|
WatzUpzPeepz
Member
Posts: 106
Threads: 12
Joined: May 2011
Reputation:
0
|
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 |
|
|