If the lever is pulled, have the interaction call back set a global variable to 1.
SetGlobalVarInt(string& asName, int alVal);
Then have the callback area, timer, etc to check the global variable.
GetLocalVarInt(string& asName);
Example for checking the global variable from an area
void Checking(string &in asParent, string &in asChild, int alState)
{
if(GetGlobalVarInt("Variable")==1
{
//Insert commands here if variable = 1
}
else
{
//Insert commands here if variable does not = 1
}
}
Someone correct me if I'm wrong.