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
Hpl 2 help
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#5
RE: Hpl 2 help

(03-23-2013, 05:33 AM)s2skafte Wrote: wonderful i have another problem. i was following a tut on youtube and i did everything right i think but i get this error-unexpected 39,1 end of file. what do i do?




{
void AddEntityCollideCallback("Player", "Script_slam", "Collideroomtwo", True, 1);
}

void Collideroomtwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("Door_2, true, true);

That probably isn't your full script (because it says the error is at line 39), but anyways, make sure that your callback (AddEntityCollideCallback) is inside OnStart(). Also, you need a closing bracket at the end, and make sure that you don't capitalize the T in "true". Like this:
PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""Script_slam""Collideroomtwo"true1);
}

void Collideroomtwo(string &in asParentstring &in asChildint alState)
{
    
SetSwingDoorClosed("Door_2"truetrue);


edit: fixed a mistake with my script
edit2: fixed another mistake

In Ruins [WIP]
(This post was last modified: 03-25-2013, 05:33 AM by NaxEla.)
03-23-2013, 07:40 AM
Find


Messages In This Thread
Hpl 2 help - by s2skafte - 03-23-2013, 02:03 AM
RE: Hpl 2 help - by plutomaniac - 03-23-2013, 02:29 AM
RE: Hpl 2 help - by s2skafte - 03-23-2013, 05:33 AM
RE: Hpl 2 help - by NaxEla - 03-23-2013, 07:40 AM
RE: Hpl 2 help - by PutraenusAlivius - 03-23-2013, 06:49 AM
RE: Hpl 2 help - by s2skafte - 03-24-2013, 06:02 AM
RE: Hpl 2 help - by PutraenusAlivius - 03-24-2013, 06:10 AM
RE: Hpl 2 help - by s2skafte - 03-25-2013, 01:30 AM
RE: Hpl 2 help - by Your Computer - 03-25-2013, 01:53 AM
RE: Hpl 2 help - by s2skafte - 03-25-2013, 05:44 PM
RE: Hpl 2 help - by NaxEla - 03-25-2013, 05:35 AM
RE: Hpl 2 help - by NaxEla - 03-25-2013, 06:49 PM
RE: Hpl 2 help - by s2skafte - 03-25-2013, 09:34 PM
RE: Hpl 2 help - by s2skafte - 03-25-2013, 11:33 PM
RE: Hpl 2 help - by PutraenusAlivius - 03-26-2013, 06:30 AM



Users browsing this thread: 1 Guest(s)