Make sure that the function gets called.
Check the result from bmap_for_entity (== NULL?).
Try the code on a level entity.

This should isolate the problem.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends