The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


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)