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!
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Help ;)

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.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 04-14-2013, 12:03 PM by Romulator.)
04-14-2013, 12:01 PM
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)