I tried the function library before I posted :/
And I searched "entity owner" on the search, and only thing I found might be something like
Code:
new ent, entbody
get_user_aiming(id, ent, entbody, 200)
targetid = find_ent_by_name(ent, //code to find the owner)
Kind of threw that together in 5 seconds, but I thinks its a start.
See my problem is I am trying to get a targetid, but an entitiy surronds and is parented to the targetid
So player1 looks at player2, and it tries to kill him, but it does nothing since an entitiy in the way
If I got the owner of the entitiy (player2) then I could take a detour and kill player2 instead.
__________________