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
Question about scripting
Armored Cow Offline
Member

Posts: 72
Threads: 3
Joined: Sep 2010
Reputation: 0
#4
RE: Question about scripting

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

        for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
    }
This section of your code needs to be inside of void OnStart()


EDIT: I'll just post my new problem here.

I made a script to make a particle system appear and play a few sounds, as well as drain sanity, and now whenever I try to launch the game it says ERR: Unexpected end of file.

My .hps file ends normally, with
void OnLeave()
{

}

Anyone know why it's saying this?
09-17-2010, 04:36 AM
Find


Messages In This Thread
Question about scripting - by w 1 z - 09-17-2010, 03:08 AM
RE: Question about scripting - by MulleDK19 - 09-17-2010, 03:21 AM
RE: Question about scripting - by w 1 z - 09-17-2010, 03:57 AM
RE: Question about scripting - by Armored Cow - 09-17-2010, 04:36 AM
RE: Question about scripting - by w 1 z - 09-17-2010, 04:50 AM
RE: Question about scripting - by jens - 09-17-2010, 07:11 AM
RE: Question about scripting - by w 1 z - 09-17-2010, 07:39 AM
RE: Question about scripting - by Armored Cow - 09-17-2010, 03:40 PM
RE: Question about scripting - by jens - 09-17-2010, 04:21 PM
RE: Question about scripting - by Armored Cow - 09-17-2010, 04:40 PM
RE: Question about scripting - by jens - 09-17-2010, 05:45 PM
RE: Question about scripting - by MulleDK19 - 09-17-2010, 05:55 PM
RE: Question about scripting - by Armored Cow - 09-17-2010, 07:02 PM



Users browsing this thread: 1 Guest(s)