Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help ;) solved!
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#7
RE: Help ;)

(04-14-2013, 12:53 PM)ROMul8r Wrote:
(04-14-2013, 12:23 PM)VeNoMzTeamHysterical Wrote:
(04-14-2013, 12:01 PM)ROMul8r Wrote: What if you used this?
OnStart()
{
     SetLanternLitCallback("AllowEntrance");
     SetLanternLitCallback("DisallowEntrance");
}

void AllowEntrance(true)
{
     SetEntityActive("block_box_1", false);
}

void AllowEntrance(false)
{
     SetEntityActive("block_box_1", true);
}
It's pretty nooby code, and not exactly what you wanted, but I think it would work. Basically it allows you to enter the cave if you have your lantern currently on. It would be an idea to also put in a ScriptArea after which lets you go to the next level. You just need a block box stopping you from going into the cave named block_box_1.

I get 2 errors when i try'd it it says ERR : Expected Data Type

off . void AllowEntrance(false) and void AllowEntrance(true)

Oh lol, then I can't help much, I was just going by the wiki Tongue http://wiki.frictionalgames.com/hpl2/amn...unctions?s
If you just do "Ctrl+F" and look for Lantern, you can find a few lines of stuff there and you might be able to manipulate one of the for your code

==EDIT==
Now that I think about it, it could actually be for an if statement, but I have no idea how to use those, but someone like JustAnotherPlayer will come along and correct me xD
Hahaha yeah he is a pro in this ;P

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
04-14-2013, 01:02 PM
Website Find


Messages In This Thread
Help ;) solved! - by VeNoMzTeamHysterical - 04-14-2013, 10:21 AM
RE: Help ;) - by Romulator - 04-14-2013, 12:01 PM
RE: Help ;) - by VeNoMzTeamHysterical - 04-14-2013, 12:23 PM
RE: Help ;) - by Romulator - 04-14-2013, 12:53 PM
RE: Help ;) - by VeNoMzTeamHysterical - 04-14-2013, 01:02 PM
RE: Help ;) - by 7heDubz - 04-14-2013, 12:42 PM
RE: Help ;) - by VeNoMzTeamHysterical - 04-14-2013, 12:43 PM
RE: Help ;) Not solved! - by NaxEla - 04-14-2013, 10:07 PM
RE: Help ;) Not solved! - by VeNoMzTeamHysterical - 04-15-2013, 08:24 AM
RE: Help ;) Not solved! - by PutraenusAlivius - 04-15-2013, 07:18 AM
RE: Help ;) solved! - by VeNoMzTeamHysterical - 04-15-2013, 05:01 PM



Users browsing this thread: 1 Guest(s)