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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-15-2013 , 04:27   Re: How can I get the origin that in front of the entity
Reply With Quote #2

velocity_by_aim + player origin should work

Try this :

PHP Code:
GetPlayerFrontOriginiddistanceorigin[3] )
{
    new 
Float:temp[3];
    
pev(idpev_originorigin);
    
pev(idpev_view_ofstemp);
    
origin[2] += temp[2];
    
velocity_by_aim(iddistancetemp);
    
xs_vec_add(origintemporigin);

Usage :
PHP Code:
{
    new 
Float:origin[3];
    
GetPlayerFrontOrigin(id150origin);

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 09-15-2013 at 04:28.
ConnorMcLeod 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