Raised This Month: $ Target: $400
 0% 

Entity links


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 11-27-2007 , 06:19   Entity links
Reply With Quote #1

So ...

Hi, everyone ...

just a simple question: How to find out, which entity is another entity linked to?

(E.g. which entity is some func_button triggering.)

Cheers!
__________________
alien is offline
Send a message via ICQ to alien
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 11-27-2007 , 06:52   Re: Entity links
Reply With Quote #2

pev_owner is the only thing I can think of that might help ( but I have very little experience playing with ents )

e.g.
#include <fakemeta>
...
new owner = pev(ent,pev_owner) ;

Last edited by purple_pixie; 11-27-2007 at 06:55.
purple_pixie is offline
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 11-27-2007 , 07:56   Re: Entity links
Reply With Quote #3

I don't think so ...
I haven't seen other entites than user carried weapons with owner > 0.
__________________
alien is offline
Send a message via ICQ to alien
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 11-27-2007 , 08:08   Re: Entity links
Reply With Quote #4

Sorry, then.

I think it is also used for dropped weapons ( their owner is the box that you collide with to pick them up )

EDIT: You could try SHP Tools and do a dump of the func_button ( and its related ent? [ where you know which one it is ] )

EDIT2: Just tried this on Assault with the camera buttons, and they use pev_target.

Last edited by purple_pixie; 11-27-2007 at 08:15.
purple_pixie is offline
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 11-27-2007 , 09:05   Re: Entity links
Reply With Quote #5

Yes ... it does work for buttons ...
I've got func_button with target = A ...
I've found a multi_manager with target_name = A ...
But it has no target ... !
So that's where I finish :-)

And there are hundreds of linked entities I need to remove - they're useless for the server.
__________________
alien is offline
Send a message via ICQ to alien
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 11:00.


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