void OnStart()
{
    SetEntityConnectionStateChangeCallback("lever_simple01_2", "Lever2");
    SetEntityConnectionStateChangeCallback("crank_iron_1", "RaiseWeight");
}
void RaiseWeight(string &in asEntity, int alState)
{
    if (alState == 1)
    {
        SetWheelStuckState("crank_iron_1", 1, true);
        PlaySoundAtEntity("", "fizzle", "light_electric_1", 0.0f, false);
        SetLampLit("light_electric_1", true, true);
        SetGlobalVarInt("WeightRaised", 1);
    }
}
void Lever2(string &in asEntity, int alState)
{
    if (alState == 1)
    {
        if (GetLocalVarInt("WeightRaised") == 1)
        {
            SetLocalVarInt("PistonLevers", 1);
            PlaySoundAtEntity("", "lever_mech_min_max", "lever_simple01_2", 0.0f, false);
            SetLeverStuckState("lever_simple01_2", 1, true);
            AddTimer("WatchDisappear", RandFloat(10.0f, 30.0f), "WatchDisappear"); 
        }
        else
        {
            SetMessage("Ch03Misc", "notwound", 0);
        }
    }
}