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?
Kullin Offline
Member

Posts: 218
Threads: 23
Joined: May 2013
Reputation: 3
#1
Can I make the the player unable to turn of the lantern?

Is it possible to make the player unable to turn of the lantern somehow?
07-24-2013, 07:05 PM
Find
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
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Can I make the the player unable to turn of the lantern?

http://wiki.frictionalgames.com/hpl2/amn...ons#player

You should play with these in order to get an always-lantern script:

SetLanternDisabled(bool abX);
bool GetLanternActive();
SetLanternActive(bool abX, bool abUseEffects);

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-24-2013, 07:20 PM
Find
Kullin Offline
Member

Posts: 218
Threads: 23
Joined: May 2013
Reputation: 3
#4
RE: Can I make the the player unable to turn of the lantern?

Thank you both! I dont want the animations though thats the problem! Smile
07-24-2013, 07:22 PM
Find




Users browsing this thread: 1 Guest(s)