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
Script Help [unsolved]Lantern use script problem.
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#14
RE: Lantern use script problem.

AddTimer("Check", 0.1f, "CheckLantern"); //This should be called when you want to check if the lanterh is used. And it should only be called once

void CheckLantern(string &in asTimer)
{
if(GetLanternActive() == true)
{
//Do the stuff you want it to
}
AddTimer("Check", 0.1f, "CheckLantern"); //This makes it loop

}

Trying is the first step to success.
(This post was last modified: 11-03-2012, 05:25 PM by FlawlessHappiness.)
11-03-2012, 05:25 PM
Find


Messages In This Thread
[unsolved]Lantern use script problem. - by Red - 11-03-2012, 03:08 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 03:34 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 03:45 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 03:57 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 04:24 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 04:44 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 05:00 PM
RE: Lantern use script problem. - by FlawlessHappiness - 11-03-2012, 05:25 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 05:48 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 05:54 PM



Users browsing this thread: 1 Guest(s)