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
Whats wrong with this script
Itskody Offline
Member

Posts: 100
Threads: 30
Joined: Mar 2011
Reputation: 1
#1
Whats wrong with this script

I wanted to have my character get scared when looking at something, but it doesnt seem to work, tell me whats wrong with this.
PHP Code: (Select All)
////////////////////////////
// Run first time starting map
void OnStart()
{
    
SetEntityPlayerLookAtCallback(pigScarePigfalse);
}

void ScarePig(string &in entityint alState)
{
    
GiveSanityDamage(10.0ftrue);
    
PlaySoundAtEntity("""react_breath_slow.snt""Player"0false);

04-03-2011, 09:33 PM
Find


Messages In This Thread
Whats wrong with this script - by Itskody - 04-03-2011, 09:33 PM
RE: Whats wrong with this script - by Russ Money - 04-03-2011, 09:35 PM
RE: Whats wrong with this script - by Itskody - 04-03-2011, 09:35 PM
RE: Whats wrong with this script - by Russ Money - 04-03-2011, 09:37 PM
RE: Whats wrong with this script - by Itskody - 04-03-2011, 09:38 PM
RE: Whats wrong with this script - by Russ Money - 04-03-2011, 09:40 PM
RE: Whats wrong with this script - by Itskody - 04-03-2011, 09:41 PM



Users browsing this thread: 1 Guest(s)