Getting edict from name
I'd like to be able to get the edict of a client when they send a radio message, but all I have access to is the name of the sending client. Is there a command in the SDK that will let me do this?
FIND_ENTITY_BY_STRING sounds like it would do the trick, but I don't know where to find a listing of available fieldnames... can anyone fill me in? Thanks again- this forum has been a great help! -JB |
Re: Getting edict from name
There is no facility available in the SDK that will do what you want that I know of. However, you can simply find the edict_t of a particular client given his name, if you cycle through all of them and compare their netname with the supplied one.
Code:
int iClientIndex; |
All times are GMT +2. The time now is 03:14. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.