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
Why doesn't this simple script work?
Patacorow Offline
Member

Posts: 135
Threads: 11
Joined: Jul 2011
Reputation: 3
#1
Question  Why doesn't this simple script work?

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "GruntEvent", true, 1);
}


void GruntEvent(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("enemy_grunt",true);
}
This doesn't work. Help?

EDIT: Nevermind! I just had to recompile the script file. You can delete this. :S
(This post was last modified: 10-26-2011, 06:17 PM by Patacorow.)
10-26-2011, 06:12 PM
Find


Messages In This Thread
Why doesn't this simple script work? - by Patacorow - 10-26-2011, 06:12 PM



Users browsing this thread: 1 Guest(s)