AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entity links (https://forums.alliedmods.net/showthread.php?t=63678)

alien 11-27-2007 06:19

Entity links
 
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!

purple_pixie 11-27-2007 06:52

Re: Entity links
 
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) ;

alien 11-27-2007 07:56

Re: Entity links
 
I don't think so ...
I haven't seen other entites than user carried weapons with owner > 0.

purple_pixie 11-27-2007 08:08

Re: Entity links
 
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.

alien 11-27-2007 09:05

Re: Entity links
 
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.


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

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