Raised This Month: $ Target: $400
 0% 

EV_VEC_view_ofs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 11-08-2005 , 21:58  
Reply With Quote #1

If you want the origin from which the player is looking, just add the EV_VEC_view_ofs to EV_VEC_origin of the player.

Code:
new Float:viewofs[3], Float:origin[3] entity_get_vector( id, EV_VEC_view_ofs, viewofs ) entity_get_vector( id, EV_VEC_view_ofs origin ) //even though only one axis is effected, its just good habit to do them all ;) origin[0] += viewofs[0] origin[1] += viewofs[1] origin[2] += viewofs[2]
KCE 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 23:59.


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