[SCRIPT] How to put out the lanter. - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] How to put out the lanter. (/thread-12404.html) |
How to put out the lanter. - idropfatkids - 01-06-2012 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! RE: How to put out the lanter. - SilentStriker - 01-06-2012 (01-06-2012, 07:40 PM)idropfatkids Wrote: Hello!change SetEntityActive for SetLanternDisabled(true); Just look around in and you'll find some neat stuff http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#player RE: How to put out the lanter. - idropfatkids - 01-06-2012 (01-06-2012, 07:50 PM)SilentStriker Wrote:Thanks dude(01-06-2012, 07:40 PM)idropfatkids Wrote: Hello!change SetEntityActive for (01-06-2012, 07:50 PM)SilentStriker Wrote:Nothing happend with the lantern it was still "burning" "/ Is it something wrong in the beginning of the script?(01-06-2012, 07:40 PM)idropfatkids Wrote: Hello!change SetEntityActive for RE: How to put out the lanter. - Krymtel - 01-07-2012 Try changing "lantern" into "hand_lantern" RE: How to put out the lanter. - Dewi - 01-07-2012 I honestly have no experience with scripting at all, but I noticed this line: void Disablelanter(string &in asParent, string &in asChild, int alState) says Disablelanter , shouldn't that be lantern? Ignore me if 'lanter' is something, though.. EDIT: Yeah, it probably is something since it says the same somewhere else. Nevermind! RE: How to put out the lanter. - Krymtel - 01-07-2012 (01-07-2012, 03:27 AM)Dewi Wrote: I honestly have no experience with scripting at all, but I noticed this line:If you need some help with anything, check out the wiki RE: How to put out the lanter. - MulleDK19 - 01-07-2012 (01-06-2012, 07:40 PM)idropfatkids Wrote: Hello!Use SetLanternActive(false, true); to turn it off, and SetLanternActive(true, true); to turn it on. |