Trawled through the hlcoders archives, think I found the answer: http://www.mail-archive.com/[email protected]/msg23102.html points to gEntList - I'm testing that now, but please correct me if I'm on the wrong track.
Thanks, Iain. ---------- Forwarded message ---------- From: Iain Breen <[email protected]> Date: Tue, Mar 23, 2010 at 4:43 PM Subject: Retrieve List of entities in a level To: Discussion of Half-Life Programming <[email protected]> Is there a way to retrieve a list of all entities in a level? I've created a test level with a custom NPC and a custom Area trigger, so is there some structure that contains pointers to these objects? Basically, I'm looking to retrieve a boolean from a function inArea(Entity, Area) in the Area class. I have the Area object detecting whether a relevant object is inside or not (for now either the player or the NPC) using inputs/outputs in Hammer, so I need the NPC's think function to be able to retrieve the status of inArea() for each area in the level. In the future, I'll need to retrieve status from a few more custom entities that I'll be adding, so I need to be able to parse all entities in the level (I'll probably bound this to a certain radius around the NPC). Thanks Iain _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

