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
Can I make the the player unable to turn of the lantern?
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#2
RE: Can I make the the player unable to turn of the lantern?

Not really.
You can only set a callback which'll turn it back on if it turns off.

void OnStart()
{    
    SetLanternLitCallback("Ununlit");
}

void Ununlit(bool islit)
{    
    if(!islit)    
    {        
        SetLanternActive(true, false);    
    }
}
(This post was last modified: 07-24-2013, 07:19 PM by ClayPigeon.)
07-24-2013, 07:18 PM
Find


Messages In This Thread
RE: Can I make the the player unable to turn of the lantern? - by ClayPigeon - 07-24-2013, 07:18 PM



Users browsing this thread: 1 Guest(s)