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
How to?
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#10
RE: How to?

If I'm not confused you need to add a script file named same as you map but ending with .hps.

test.map and then make a text file called test.hps and in the text file add:

////////////////////////////
// Run first time starting map
void OnStart()
{
    //Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!
    if(ScriptDebugOn())
    {
        GiveItemFromFile("lantern", "lantern.ent");

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

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

I've updated the main page of the wiki to be a bit more clear on this.
(This post was last modified: 09-16-2010, 01:14 PM by jens.)
09-16-2010, 01:13 PM
Website Find


Messages In This Thread
How to? - by darkdamp - 09-15-2010, 12:41 PM
RE: How to? - by Hofmannism - 09-15-2010, 03:34 PM
RE: How to? - by ScorpyX - 09-15-2010, 04:10 PM
RE: How to? - by Luis - 09-15-2010, 04:59 PM
RE: How to? - by sacroid - 09-15-2010, 09:22 PM
RE: How to? - by Javist - 09-15-2010, 10:45 PM
RE: How to? - by Boulipoulpe - 09-16-2010, 11:15 AM
RE: How to? - by Luis - 09-16-2010, 11:31 AM
RE: How to? - by Boulipoulpe - 09-16-2010, 12:44 PM
RE: How to? - by jens - 09-16-2010, 01:13 PM
RE: How to? - by Luis - 09-16-2010, 01:18 PM
RE: How to? - by Boulipoulpe - 09-16-2010, 01:36 PM
RE: How to? - by Armored Cow - 09-16-2010, 03:07 PM
RE: How to? - by Luis - 09-16-2010, 03:17 PM
RE: How to? - by Armored Cow - 09-16-2010, 03:53 PM
RE: How to? - by Argoon - 09-16-2010, 09:15 PM
RE: How to? - by Armored Cow - 09-16-2010, 09:19 PM
RE: How to? - by Zombie Shakespeare - 09-16-2010, 10:40 PM
RE: How to? - by Rosto - 09-17-2010, 12:05 AM
RE: How to? - by NGW - 09-17-2010, 01:04 AM
RE: How to? - by ScorpyX - 09-17-2010, 01:15 AM



Users browsing this thread: 1 Guest(s)