Raised This Month: $ Target: $400
 0% 

Set/Get Where player is aiming


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
orglee
Member
Join Date: Dec 2005
Old 08-22-2009 , 09:50   Re: Set/Get Where player is aiming
Reply With Quote #8

Ok code below does the trick ( well not fully )
PHP Code:
// Getting
entity_get_vector(iPlayerEV_VEC_anglesgCheckpointAngle[iPlayer]);
// Setting        
entity_set_vector(iPlayerEV_VEC_anglesgCheckpointAngle[iPlayer]);
entity_set_int(iPlayerEV_INT_fixangle1); 
There is still small glitch. Although player view is set correctly on 'x' and 'z' but not on 'y'. It does not set players view vertically.

Last edited by orglee; 08-22-2009 at 16:57.
orglee is offline
 



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


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