[SCRIPT] Disable Lantern? - 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] Disable Lantern? (/thread-21784.html) Pages:
1
2
|
Disable Lantern? - amnesiaplayer321 - 06-10-2013 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 RE: Disable Lantern? - VeNoMzTeamHysterical - 06-10-2013 (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. RE: Disable Lantern? - OriginalUsername - 06-10-2013 Check out the wiki before you ask these questions RE: Disable Lantern? - amnesiaplayer321 - 06-10-2013 i cant find in wiki. RE: Disable Lantern? - VeNoMzTeamHysterical - 06-10-2013 (06-10-2013, 02:01 PM)amnesiaplayer321 Wrote: i cant find in wiki. http://wiki.frictionalgames.com/hpl2/amnesia/script_functions In this case Ctrl+F then type Lantern and you find it. RE: Disable Lantern? - amnesiaplayer321 - 06-10-2013 Ok.Thanks again. RE: Disable Lantern? - VeNoMzTeamHysterical - 06-10-2013 (06-10-2013, 02:09 PM)amnesiaplayer321 Wrote: Ok.Thanks again. No problem. Anyway i am glad i can help you. RE: Disable Lantern? - amnesiaplayer321 - 06-10-2013 Anyway,i have another question. Why theres a interact button on script areas? Anyway to remove it? RE: Disable Lantern? - VeNoMzTeamHysterical - 06-10-2013 (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. RE: Disable Lantern? - amnesiaplayer321 - 06-10-2013 Ok. Thanks for your help. Now i can progress again. I look fix for that. |