void ClearAndJumpToObject(object oDestination);
void ClearAndJumpToObject(object oDestination)
{
    ClearAllActions();
    JumpToObject(oDestination);
}



void main()
{

    object oPC = GetFirstPC();
    object oTarget;


        oTarget = GetWaypointByTag("WP_Shadowdale_To_TwistedT");

        SetLocalInt(oPC, "siegebegins", 1);
        FadeToBlack(oPC);
        DelayCommand(1.0, AssignCommand(oPC, ClearAndJumpToObject(oTarget)));
        //DelayCommand(1.0, AssignCommand(OBJECT_SELF, ClearAndJumpToObject(oTarget2)));
        DelayCommand(1.5, AssignCommand(oPC, FadeFromBlack(oPC)));
        DelayCommand(2.0 , DestroyObject(OBJECT_SELF));


        }












