Raised This Month: $ Target: $400
 0% 

[Request] Access Entities via targetname


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 05-28-2008 , 11:03   Re: [Request] Access Entities via targetname
Reply With Quote #2

In general terms, you need to loop through all of the entities (up to GetEntityCount) and check the targetname of the each entity. I believe you can use GetEntPropString to find the the m_target property. If the string returned matches your name (example: blobb) then use the AcceptEntityInput function to send the input (such as kill).
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke 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 18:07.


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