Raised This Month: $ Target: $400
 0% 

Angle to Origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 01-07-2006 , 04:37  
Reply With Quote #6

Yup, I indeed think you misunderstood it. I think he wants a player model to look there - created by something like create_entity.

Anyway, your example:
Code:
new Float:destVec[3]; // Set this accordingly new Float:srcVec[3]; new Float:angles[3]; entity_get_vector(id, EV_VEC_origin, srcVec); compute_look_angles(srcVec, destVec, angles); entity_set_vector(id, EV_VEC_angles, angles); entity_set_vector(id, EV_VEC_v_angle, angles); entity_set_int(id, EV_INT_fixangle, 1);

Or, uhh, that might work, I haven't tested it though. Also, I don't know whether v_angle is relative to the world coordinates or to the already set model angles. No idea XD test it.
__________________
hello, i am pm
PM 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:45.


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