Raised This Month: $ Target: $400
 0% 

Finding entity's owner?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Des12
Senior Member
Join Date: Jan 2005
Old 12-28-2005 , 16:30   Finding entity's owner?
Reply With Quote #1

I know you can do

Code:
entity_set_edict(entity, EV_ENT_owner, id)
to set an entity's owner, but how do you find an entity's owner?
__________________
-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
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 12-28-2005 , 16:32  
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?...edic&go=search


http://www.amxmodx.org/funcwiki.php ... This should be your best friend.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
[+]
Junior Member
Join Date: Dec 2005
Location: Alaska
Old 12-28-2005 , 17:35  
Reply With Quote #3

Correction..this should be your best friend - http://www.amxmodx.org/forums/search.php
[+] is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-28-2005 , 18:20  
Reply With Quote #4

Quote:
Originally Posted by [+
]Correction..this should be your best friend - http://www.amxmodx.org/forums/search.php
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 12-28-2005 , 18:39  
Reply With Quote #5

Quote:
Originally Posted by [+
]Correction..this should be your best friend - http://www.amxmodx.org/forums/search.php
They both should be
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-28-2005 , 19:19  
Reply With Quote #6

But you can't have two BEST friends... looks like we have some conflict here
Jordan is offline
[+]
Junior Member
Join Date: Dec 2005
Location: Alaska
Old 12-28-2005 , 19:20  
Reply With Quote #7

Ha, I believe we do. Yet, the search link can guide you to the funcwiki. So, I believe the search link wins!
[+] is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-28-2005 , 20:57  
Reply With Quote #8

But wait there is another friend that you all so politely forgot.
http://www.amxmodx.org/doc/
He is a good friend to.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
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
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 12-29-2005 , 13:03  
Reply With Quote #10

Code:
new ownerid = entity_get_edict(entity, EV_ENT_owner)
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Reply



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