How to check if the lantern is lit in certain area? - 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: How to check if the lantern is lit in certain area? (/thread-11516.html) |
How to check if the lantern is lit in certain area? - Need4Power - 11-26-2011 Hello people I'm new with all this custom story thing,and i have a question,how do i check if the lantern is lit,while i'm in a certain script area? thanks ^^ RE: How to check if the lantern is lit in certain area? - Tanshaydar - 11-26-2011 Use the SetLanternLitCallback(string& asCallback); function in your area script. Basically, when player enters the area, set the lantern callback with SetLanternLitCallback("FunctionName"); and when players exit the area set it to SetLanternLitCallback(""); to remove the callback. RE: How to check if the lantern is lit in certain area? - Need4Power - 11-26-2011 Works perfectly!,thank you |