Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check if the lantern is lit in certain area?
Author Message
Need4Power Offline
Member

Posts: 178
Joined: Jan 2011
Reputation: 2
Post: #1
How to check if the lantern is lit in certain area?
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 ^^
11-26-2011 01:30 PM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #2
RE: How to check if the lantern is lit in certain area?
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.

11-26-2011 02:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Need4Power Offline
Member

Posts: 178
Joined: Jan 2011
Reputation: 2
Post: #3
RE: How to check if the lantern is lit in certain area?
Works perfectly!,thank you Smile
11-26-2011 02:51 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)