void spawnbindanim(void Name, float dx, float dy, float dz, int iDir,int iBind, void Ani)
{ // Spawn and bind other entity with desired animation
void self = getlocalvar("self");
void Spawn;
Spawn = spawn01(Name, dx, dy, 0);
bindentity(Spawn, self, dx, dz, dy, iDir, iBind);
changeentityproperty(Spawn, "animation", openborconstant(Ani));
}