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
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#1
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.

[Image: 44917299.jpg]Dubstep <3
06-09-2011, 07:13 PM
Find
DarkEagle Offline
Junior Member

Posts: 15
Threads: 3
Joined: Jun 2011
Reputation: 0
#2
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? Smile

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
Find
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




Users browsing this thread: 1 Guest(s)