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
#3
RE: Help ;)


(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)

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
(This post was last modified: 04-14-2013, 12:41 PM by VeNoMzTeamHysterical.)
04-14-2013, 12:23 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)