check out ent_next(entity); in the manual.
good luck with this!


~"I never let school interfere with my education"~
-Mark Twain