Page 1 of 1

Find entity at given coordinates

Posted: Mon Sep 21, 2009 3:01 am
by Tenken
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

Re: Find entity at given coordinates

Posted: Tue Sep 22, 2009 5:12 pm
by ^misantropia^
Hi Tenken, check out the findradius() function here: http://www.quake3hut.co.uk/q3coding/cod ... 0grens.htm

Re: Find entity at given coordinates

Posted: Tue Sep 22, 2009 5:18 pm
by ^misantropia^
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.

Re: Find entity at given coordinates

Posted: Wed Sep 30, 2009 12:12 pm
by Tenken
Tank you :)