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
I cannot figure this out. Help?
jamessnk1 Offline
Junior Member

Posts: 37
Threads: 6
Joined: Mar 2012
Reputation: 2
#1
I cannot figure this out. Help?

So I just started scripting and I've been playing around with a couple effects and it was going pretty well. Then I started getting an error message saying "unexpected end of file" or something like that. I looked over this a thousand times but I just can't figure it out. Help?
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "ScriptArea_1", true, 1);
AddEntityCollideCallback("Player", "nolantern", "nolantern", true, 1);
AddEntityCollideCallback("Player", "explode_door", explode_door", true, 1);
}

void ScriptArea_1(string &in asParent, string &in asChild, int alState)
{
if(alState == 1)
{
SetSwingDoorClosed("mansion_1", true, true);
}
}
void explode_door(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("explode",0.0f);
}
void nolantern(string &in asParent, string &in asChild, int alState)
{
SetLanternDisabled(true);
}

(This post was last modified: 05-04-2012, 12:45 AM by jamessnk1.)
03-15-2012, 02:52 AM
Find


Messages In This Thread
I cannot figure this out. Help? - by jamessnk1 - 03-15-2012, 02:52 AM



Users browsing this thread: 1 Guest(s)