Frictional Games Forum (read-only)

Full Version: How to check if the lantern is lit in certain area?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello people Big Grin
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 ^^

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.
Works perfectly!,thank you Smile