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 How to put out the lanter.
idropfatkids Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jan 2012
Reputation: 0
#3
RE: How to put out the lanter.

(01-06-2012, 07:50 PM)SilentStriker Wrote:
(01-06-2012, 07:40 PM)idropfatkids Wrote: Hello!

How can i put out lantern for some few seconds when i go in a Scriptarea.
Not remove it, just put it of.

I tried this script, but nothing happend.


void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Disablelanter", true, 1);
}


void Disablelanter(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("lantern", false);
}

Ty for your answers in advance! Smile
change SetEntityActive for
SetLanternDisabled(true);

Just look around in and you'll find some neat stuff Smile http://wiki.frictionalgames.com/hpl2/amn...ons#player
Thanks dude Smile
(01-06-2012, 07:50 PM)SilentStriker Wrote:
(01-06-2012, 07:40 PM)idropfatkids Wrote: Hello!

How can i put out lantern for some few seconds when i go in a Scriptarea.
Not remove it, just put it of.

I tried this script, but nothing happend.


void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Disablelanter", true, 1);
}


void Disablelanter(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("lantern", false);
}

Ty for your answers in advance! Smile
change SetEntityActive for
SetLanternDisabled(true);

Just look around in and you'll find some neat stuff Smile http://wiki.frictionalgames.com/hpl2/amn...ons#player
Nothing happend with the lantern it was still "burning" "/ Is it something wrong in the beginning of the script?
(This post was last modified: 01-06-2012, 09:20 PM by idropfatkids.)
01-06-2012, 09:12 PM
Find


Messages In This Thread
How to put out the lanter. - by idropfatkids - 01-06-2012, 07:40 PM
RE: How to put out the lanter. - by SilentStriker - 01-06-2012, 07:50 PM
RE: How to put out the lanter. - by idropfatkids - 01-06-2012, 09:12 PM
RE: How to put out the lanter. - by Krymtel - 01-07-2012, 12:45 AM
RE: How to put out the lanter. - by Dewi - 01-07-2012, 03:27 AM
RE: How to put out the lanter. - by Krymtel - 01-07-2012, 08:43 AM
RE: How to put out the lanter. - by MulleDK19 - 01-07-2012, 12:35 PM



Users browsing this thread: 1 Guest(s)