Okay, here's the code I have:
void block(int Flag)
{// Turns blocking status
void self = getlocalvar("self");
changeentityproperty(self, "aiflag", "blocking", Flag);
}
void move(int dx, int dz,int da)
{ // Moves entity freely and ignores obstacles
void self = getlocalvar("self")...