Hey everybody,
im currently working on a q3 mod im having a small problem. Id like to be able to find an entity based on coordinates. is this possible? if so, how should i do this? afterwards id like use the height of that entity.
Thanks in advance,
Tenken
Find entity at given coordinates
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: Find entity at given coordinates
Hi Tenken, check out the findradius() function here: http://www.quake3hut.co.uk/q3coding/cod ... 0grens.htm
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: Find entity at given coordinates
BTW, the height of an entity can be found through its ent->r.min and ent->r.max properties. They're both vec3_t instances and define the entity's bounding box.