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
Jumpscare Code Problems. Help fix plz
nnate4 Offline
Junior Member

Posts: 1
Threads: 1
Joined: Jul 2012
Reputation: 0
#1
Jumpscare Code Problems. Help fix plz

okay, so here is a script to make a grunt pop out, when you go in an area. what am i doing wrong? nothing is happening when i go in the area.


void OnStart(){
AddEntityCollideCallback("Player", "Jumpscare_1", "Jump1", true, 1);
}
void Jump1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("bro_1", true);
AddTimer("", 0.7, "scared");
}
void scared(string &in asTimer)
{
SetEntityActive("bro_1", false);
}
07-29-2012, 02:39 AM
Find


Messages In This Thread
Jumpscare Code Problems. Help fix plz - by nnate4 - 07-29-2012, 02:39 AM



Users browsing this thread: 1 Guest(s)