Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved I cannot figure this out. Help?
Author Message
jamessnk1 Offline
Junior Member

Posts: 37
Joined: Mar 2012
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,237
Joined: Jul 2011
Reputation: 216
Post: #2
RE: I cannot figure this out. Help?
The callback argument string for the third AddEntityCollideCallback was not properly opened.

Tutorials: From Noob to Pro
03-15-2012 03:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jamessnk1 Offline
Junior Member

Posts: 37
Joined: Mar 2012
Reputation: 2
Post: #3
RE: I cannot figure this out. Help?
(03-15-2012 03:25 AM)Your Computer Wrote:  The callback argument string for the third AddEntityCollideCallback was not properly opened.
Ahhhhh. Thank you very much. This is the first time I've ever coded and I literally learned how last night haha.

03-15-2012 03:36 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)