Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check if the lantern is lit in certain area?
Need4Power Offline
Member

Posts: 180
Threads: 1
Joined: Jan 2011
Reputation: 2
#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
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#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
Website Find
Need4Power Offline
Member

Posts: 180
Threads: 1
Joined: Jan 2011
Reputation: 2
#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




Users browsing this thread: 1 Guest(s)