Raised This Month: $ Target: $400
 0% 

Finding entity's owner?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Des12
Senior Member
Join Date: Jan 2005
Old 12-28-2005 , 23:12  
Reply With Quote #9

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.
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode