void grabfree()
{
	void self = getlocalvar("self");
	void target = getlocalvar("Target" + self);

	if(target==NULL())
	{
		target = getentityproperty(self, "grabbing");
		setlocalvar("Target" + self, target);
	}
	if(target!=NULL())
	{
		bindentity(target, NULL());
		bindentity(self, NULL());

		//setidle(target);
		//setidle(self);
		//changeentityproperty(target, "animationid", "ANI_IDLE", 1);
		//changeentityproperty(target, "aiflag", "idle", 1); // Disable jumping status

		changeentityproperty(self, "aiflag", "common_grab", 0);
		changeentityproperty(self, "aiflag", "idling", 1);

		changeentityproperty(target, "aiflag", "common_grabbed", 0);
		changeentityproperty(target, "aiflag", "idling", 1);
	}
}