
####animationscript function main#####
# data/chars/Knuckles/Knuckles.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==1)
    {
        if(frame==1)
        {
            changeentityproperty(getlocalvar("self"), "Subject_to_Wall", 0);

        }
        return;
    }
    if(animnum==2)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "Subject_to_Wall", 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "Subject_to_Wall", 1);

        }
        return;
    }

}
