Frictional Games Forum (read-only)

Full Version: Can I make the the player unable to turn of the lantern?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to make the player unable to turn of the lantern somehow?
Not really.
You can only set a callback which'll turn it back on if it turns off.

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

void Ununlit(bool islit)
{    
    if(!islit)    
    {        
        SetLanternActive(true, false);    
    }
}
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);
Thank you both! I dont want the animations though thats the problem! Smile