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?
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


Messages In This Thread
Disable Lantern? - by amnesiaplayer321 - 06-10-2013, 10:43 AM
RE: Disable Lantern? - by VeNoMzTeamHysterical - 06-10-2013, 11:33 AM
RE: Disable Lantern? - by OriginalUsername - 06-10-2013, 01:50 PM
RE: Disable Lantern? - by amnesiaplayer321 - 06-10-2013, 02:01 PM
RE: Disable Lantern? - by VeNoMzTeamHysterical - 06-10-2013, 02:03 PM
RE: Disable Lantern? - by amnesiaplayer321 - 06-10-2013, 02:09 PM
RE: Disable Lantern? - by VeNoMzTeamHysterical - 06-10-2013, 02:12 PM
RE: Disable Lantern? - by amnesiaplayer321 - 06-10-2013, 02:17 PM
RE: Disable Lantern? - by VeNoMzTeamHysterical - 06-10-2013, 02:38 PM
RE: Disable Lantern? - by Daemian - 06-11-2013, 01:03 AM
RE: Disable Lantern? - by amnesiaplayer321 - 06-11-2013, 12:23 PM
RE: Disable Lantern? - by amnesiaplayer321 - 06-10-2013, 02:39 PM
RE: Disable Lantern? - by VeNoMzTeamHysterical - 06-10-2013, 03:51 PM



Users browsing this thread: 4 Guest(s)