Raised This Month: $51 Target: $400
 12% 

Solved Get entity index of unsolid entity?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 11-03-2017 , 12:40   Get entity index of unsolid entity?
Reply With Quote #1

Hi,
I need to Trace an unsolid entity, but I cant make it work.

I've tryed:
PHP Code:
    float vClientPos[3];    
    
float vClientAng[3];
    
    
GetClientEyePosition(clientvClientPos);
    
GetClientEyeAngles(clientvClientAng);
    
    
TR_TraceRayFilter(vClientPosvClientAngMASK_ALLRayType_InfiniteTraceRayDontHitPlayerclient);
    
int iEnt TR_GetEntityIndex(); 
But it always return 0, I've used MASK_ALL & MASK_VISIBLE both.

EDIT:

Solved, idk, why i've restarted the maps and now it's work ok!
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 11-03-2017 at 13:20.
Papero is offline
Reply



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:06.


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