Raised This Month: $ Target: $400
 0% 

LookAtPoint || LookAtClient [TF2/Possibly Other Games]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-04-2015 , 01:36   Re: LookAtPoint || LookAtClient [TF2/Possibly Other Games]
Reply With Quote #1

PHP Code:
// iEntity can also be a player...
stock LookAtEntity(iClientiEntity)
{
    
decl Float:vPos[3];
    
GetEntPropVector(iEntProp_Data"m_vecAbsOrigin"vPos); // Diff between this and m_vecOrigin? Who knows! But both players and various entities have that.
    
LookAtPoint(iClientvPos);

__________________
Chdata 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 18:32.


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