Ty for fast reply. Well the problem is that it returns the same bone name when hitting different parts/bones (polygon hulls), the manual also states that usebox is mutually exclusive with scantexture. I really need usebox though, since the entities have some thin shapes etc otherwise attacking would be to annoying.

Edit- I noticed that hit.x is actually updated, but the vertex number not. And "var vertex_num = ent_nextvertex(you, hit.x);" works only for terrains it seems. So I just need to find an effective way of finding the closest vertex to the hit.x ...

Last edited by Reconnoiter; 01/08/18 14:27.