//::///////////////////////////////////////////////
//:: swt_trapdoor_use
//:: swt_trapdoor_use.nss
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*

*/
//:://////////////////////////////////////////////
//:: Created By: Lysandius
//:: Created On: 28-06-2002
//:://////////////////////////////////////////////

void main()
{
    PlaySound("as_sw_chestop1");
    if (GetLocalInt(OBJECT_SELF, "Open") == FALSE)
    {
        ActionPlayAnimation(ANIMATION_PLACEABLE_OPEN,1.0,2.0);
        ActionStartConversation(GetLastUsedBy(), "", TRUE);
    }
    else
        ActionPlayAnimation(ANIMATION_PLACEABLE_CLOSE,1.0,2.0);
}