07-24-2013, 07:05 PM
07-24-2013, 07:18 PM
Not really.
You can only set a callback which'll turn it back on if it turns off.
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);
}
}
07-24-2013, 07:20 PM
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);
You should play with these in order to get an always-lantern script:
SetLanternDisabled(bool abX);
bool GetLanternActive();
SetLanternActive(bool abX, bool abUseEffects);
07-24-2013, 07:22 PM
Thank you both! I dont want the animations though thats the problem!