Raised This Month: $ Target: $400
 0% 

[Question] SDKtools Trace


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-25-2007 , 08:15   [Question] SDKtools Trace
Reply With Quote #1

How do I use TR_GetEntityIndex(Handle:hndl=INVALID_HANDLE) ; ?

I assume this can be used in some very interesting and creative ways. I'm trying to use it in a hooked weapon_fire event to find out what the player is looking at. I've tried testing it using the following code but it just prints out 0.

Code:
    new Handle:target;
    TR_GetEntityIndex(target);
    PrintToChatAll("%i",target);
Am I correct in assuming TR_GetEntityIndex will return another players index if the person shooting is looking directly at them? Also, why isn't this working as intended?
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
 



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 12:04.


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