Find entity at given coordinates

Locked
Tenken
Posts: 4
Joined: Wed Sep 16, 2009 11:13 pm

Find entity at given coordinates

Post 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
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Find entity at given coordinates

Post by ^misantropia^ »

Hi Tenken, check out the findradius() function here: http://www.quake3hut.co.uk/q3coding/cod ... 0grens.htm
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Find entity at given coordinates

Post 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.
Tenken
Posts: 4
Joined: Wed Sep 16, 2009 11:13 pm

Re: Find entity at given coordinates

Post by Tenken »

Tank you :)
Locked