This script used to work but now won't

imaninja1991

New member
This script worked perfectly fine before when I set it as a takedamage script, now it won't work as an animation script. Does anyone know why?

void hypnotize
{
    void self = getlocalvar("self");

        changeentityproperty(self, "hostile",openborconstant("TYPE_ENEMY")-openborconstant("TYPE_PLAYER"));
        changeentityproperty(self, "candamage",openborconstant("TYPE_ENEMY")-openborconstant("TYPE_PLAYER"));
}

It keeps on saying parse wrong or something like that but everything looks like it's spelled correctly.
 
Back
Top Bottom