Raised This Month: $ Target: $400
 0% 

[FIXED]How can I get the origin that in front of the entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 09-15-2013 , 08:43   Re: [FIXED]How can I get the origin that in front of the entity
Reply With Quote #6

PHP Code:
stock angle_to_velocityFloat:angle[3], const Float:distanceFloat:outorigin[3] )
{
    static 
Float:v_forward[3]
    
angle_vector(angleANGLEVECTOR_FORWARDv_forward)
    
outorigin[0] = v_forward[0] * distanceoutorigin[1] = v_forward[1] * distanceoutorigin[2] = v_forward[2] * distance


Last edited by .Dare Devil.; 09-15-2013 at 08:44.
.Dare Devil. 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 19:15.


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