Raised This Month: $ Target: $400
 0% 

entity vector


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 10-05-2006 , 00:14   Re: entity vector
Reply With Quote #9

Quote:
Originally Posted by VEN View Post
The whole task can be done quite simple, take a look

Code:
new Float:v1[3], Float:v2[3] pev(id, pev_origin, v1) // origin of the 1st player pev(id2, pev_origin, v2) // origin of the 2nd player xs_vec_sub(v2, v1, v1) // vector 1st->2nd engfunc(EngFunc_VecToAngles, v1, v1) // convert origin to angle
might not be aiming at a player all the time though
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



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


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