Raised This Month: $ Target: $400
 0% 

Accessing EHANDLE member


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 06-09-2014 , 09:48   Accessing EHANDLE member
Reply With Quote #1

Hi,

Im in need of retrieving an entity which is stored as an EHANDLE, however it doesn't seem possible to retrieve it with get_pdata_ent() (returns -1) as it doesn't handle the conversion back to CBase, get_pdata_int() returns what seems like a pointer however.

So I need a method for converting an EHANDLE back to a CBaseEntity pointer and then getting the entity index. This is otherwise handled by these functions in CBase:

CBase
teh ORiON 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 09:36.


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