void spawner(void vName, float fX, float fY, float fZ)
{	//Spawns entity next to caller and set them as child.
	//
	//vName: Model name of entity to be spawned in.
	//fX: X location adjustment.
	//fZ: Y location adjustment.
      //fY: Z location adjustment.

	void self = getlocalvar("self"); //Get calling entity.
	void vSpawn; //Spawn object.
	
	vSpawn = spawn01(vName, fX, fY, fZ); //Spawn in entity.

	changeentityproperty(vSpawn, "parent", self); //Set caller as parent.
    
	return vSpawn; //Return spawn.
}

void ftl()
{	//Spawns entity next to caller and set them as child.

	void self = getlocalvar("self"); //Get calling entity.
	void animation = getentityproperty (self, "animation")
        void parent = getentityproperty (self, "parent")
	void panimation = getentityproperty (parent, "animation").

	if panimation = openborconstant(ANI_FREESPECIAL){

    changeentityproperty(self, "animation", openborconstant(ANI_FREESPECIAL)); //Change the animation
 }
}

