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
Beginner help :o
FinBanana Offline
Junior Member

Posts: 29
Threads: 4
Joined: Jan 2012
Reputation: 0
#11
RE: Beginner help :o

(01-26-2012, 05:22 PM)Tripication Wrote:
(01-26-2012, 05:19 PM)FinBanana Wrote: Yeah, I tried it with

{
AddEntityCollideCallBack("Player","Script_Area1","OpenCabinet",true,1);
}

and it told me about "unexpected token 'if'.


I do have all the needed files because i bought the game at frictionalgames.com
I tried it with and without the spaces between the " and , but still I get the same error. :/
Thanks anyway and thanks in advance.
do exactly that, with nothing else. So remove this


if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");

for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
}



and have only this in your ENTIRE script for now.


void OnStart()
{
AddEntityCollideCallBack("Player","Script_Area1","OpenCabinet",true,1);
}


void OpenCabinet(string &in asParent, string &in asChild, int alState)
{
SetMoveObjectState("cabinet_nice_1", 1);
}


That should work perfectly assuming all the names of the entities and areas are correct
void OnStart()
{
AddEntityCollideCallBack("Player","Script_Area1","OpenCabinet",true,1);
}



void OpenCabinet(string &in asParent, string &in asChild, int alState)
{
SetMoveObjectState("cabinet_nice_1", 1);
}

So, my script looks like this now and I still keep getting the same error Confused
I have no idea where the problem could be.
I double-checked all the names for the areas and entities and I see nothing wrong.
Hope somebody could see what is the problem.
Thanks for the help anyway and thanks in advance.

01-26-2012, 05:29 PM
Find


Messages In This Thread
Beginner help :o - by FinBanana - 01-26-2012, 04:50 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 04:54 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 04:59 PM
RE: Beginner help :o - by SilentStriker - 01-26-2012, 05:01 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:03 PM
RE: Beginner help :o - by flamez3 - 01-26-2012, 05:05 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:08 PM
RE: Beginner help :o - by flamez3 - 01-26-2012, 05:24 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 05:19 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:22 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 05:29 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:31 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 05:33 PM
RE: Beginner help :o - by flamez3 - 01-26-2012, 05:53 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 08:14 PM
[SOLVED] - by FinBanana - 01-30-2012, 01:40 PM



Users browsing this thread: 1 Guest(s)