idropfatkids
Junior Member
Posts: 2
Threads: 1
Joined: Jan 2012
Reputation:
0
|
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! change SetEntityActive for
SetLanternDisabled(true);
Just look around in and you'll find some neat stuff http://wiki.frictionalgames.com/hpl2/amn...ons#player Thanks dude
(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! change SetEntityActive for
SetLanternDisabled(true);
Just look around in and you'll find some neat stuff 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 |
|