//::///////////////////////////////////////////////
//:: Custom User Defined Event
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*

*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////

void main()
    {
    int iUDE = GetUserDefinedEventNumber();

    if (iUDE == 1)
        ActionOpenDoor(OBJECT_SELF);
    else if (iUDE == 2)
        ActionCloseDoor(OBJECT_SELF);
    else if (iUDE == 3)
        SetLocked(OBJECT_SELF,FALSE);
    else if (iUDE == 4)
        SetLocked(OBJECT_SELF,TRUE);
    else if (iUDE == 5)
        {
        if (GetIsOpen(OBJECT_SELF))
            ActionCloseDoor(OBJECT_SELF);
        SetLocked(OBJECT_SELF,TRUE);
        }
    else if (iUDE == 6)
        {
        SetLocked(OBJECT_SELF,FALSE);
        if (!GetIsOpen(OBJECT_SELF))
            ActionOpenDoor(OBJECT_SELF);
        }
    }
