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
Script Help Disable Lantern?
amnesiaplayer321 Offline
Junior Member

Posts: 31
Threads: 4
Joined: May 2013
Reputation: 0
#1
Disable Lantern?

Hi again. I need a script for disables lantern use in specific area,then gets enabled to use in another area.I found no results on internet. Anyone can give me that script?
-----------------------------------------------------------------------------------------------------------------
Check last post for my last question
(This post was last modified: 06-10-2013, 02:35 PM by amnesiaplayer321.)
06-10-2013, 10:43 AM
Find
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#2
RE: Disable Lantern?

(06-10-2013, 10:43 AM)amnesiaplayer321 Wrote: Hi again. I need a script for disables lantern use in specific area,then gets enabled to use in another area.I found no results on internet. Anyone can give me that script?
void onStart();
{
AddEntityCollideCallback("Player", "AreaName", "LanternDisable", true, 1);
AddEntityCollideCallback("Player", "AreaName", LanternEnable", true, 1);
}

void LanternDisable(string &in asParent, string &in asChild, int alState)
{
SetLanternDisabled(true); // lantern gone
}

void LanternEnable(string &in asParent, string &in asChild, int alState)
{
SetLanternDisabled(false); // lantern back
}

When player collides with area he loses or get his lantern back.

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
(This post was last modified: 06-10-2013, 12:44 PM by VeNoMzTeamHysterical.)
06-10-2013, 11:33 AM
Website Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#3
RE: Disable Lantern?

Check out the wiki before you ask these questions
06-10-2013, 01:50 PM
Find
amnesiaplayer321 Offline
Junior Member

Posts: 31
Threads: 4
Joined: May 2013
Reputation: 0
#4
RE: Disable Lantern?

i cant find in wiki.
06-10-2013, 02:01 PM
Find
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#5
RE: Disable Lantern?

(06-10-2013, 02:01 PM)amnesiaplayer321 Wrote: i cant find in wiki.

http://wiki.frictionalgames.com/hpl2/amn..._functions

In this case Ctrl+F then type Lantern and you find it.

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
(This post was last modified: 06-10-2013, 02:05 PM by VeNoMzTeamHysterical.)
06-10-2013, 02:03 PM
Website Find
amnesiaplayer321 Offline
Junior Member

Posts: 31
Threads: 4
Joined: May 2013
Reputation: 0
#6
RE: Disable Lantern?

Ok.Thanks again.
06-10-2013, 02:09 PM
Find
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#7
RE: Disable Lantern?

(06-10-2013, 02:09 PM)amnesiaplayer321 Wrote: Ok.Thanks again.

No problem.
Anyway i am glad i can help you.

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
(This post was last modified: 06-10-2013, 02:58 PM by VeNoMzTeamHysterical.)
06-10-2013, 02:12 PM
Website Find
amnesiaplayer321 Offline
Junior Member

Posts: 31
Threads: 4
Joined: May 2013
Reputation: 0
#8
RE: Disable Lantern?

Anyway,i have another question. Why theres a interact button on script areas? Anyway to remove it?
06-10-2013, 02:17 PM
Find
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#9
RE: Disable Lantern?

(06-10-2013, 02:17 PM)amnesiaplayer321 Wrote: Anyway,i have another question. Why theres a interact button on script areas? Anyway to remove it?

Uhm you mean when you add quest on an Area i don't know to but i mostly just put it a little bit in the ground so player don't see it but i am not sure how to fix that either.

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
06-10-2013, 02:38 PM
Website Find
amnesiaplayer321 Offline
Junior Member

Posts: 31
Threads: 4
Joined: May 2013
Reputation: 0
#10
RE: Disable Lantern?

Ok. Thanks for your help. Now i can progress again. I look fix for that.
06-10-2013, 02:39 PM
Find




Users browsing this thread: 1 Guest(s)