function A_BatCheck(actor)
	actor.momz = 8*FRACUNIT
	if (actor.z + actor.height >= actor.ceilingz)
		actor.state = actor.info.spawnstate
	end
end
