(04-30-2012, 01:22 AM)Rapture Wrote: Here ya go...
SetEntityInteractionDisabled(string& asName, bool abDisabled);
Thank you ... I tried but they work even if I don't use the first lever
Or i wronged something....what i have to write at "bool abDisabled" ????
I maked this:
void OnEnter()
{
SetEntityPlayerInteractCallback("switch4", "func1", true);
SetEntityPlayerInteractCallback("switch1", "func2", true);
}
void func1(string &in EntityName, int alState)
{
if( alState == -1)
SetEntityInteractionDisabled("switch1", true);
if( alState == 1)
SetEntityInteractionDisabled("switch1", false);
}
void func2(string &in EntityName, int alState)
{
if( alState == -1)
SetLampLit("lampada1", false, true);
if( alState == 1)
SetLampLit("lampada1", true, true);
}
What i wrong?????