Raised This Month: $ Target: $400
 0% 

Vector Directions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-03-2009 , 08:09   Vector Directions
Reply With Quote #1

Well I need to get the Derections of a vector.
I have 2 Ent.. So I need to get the Direction..



PHP Code:
stock put_allplayers(Float:origin[3])
{
         static 
Float:direction[3]
         for( new 
1<= 32i++)
         {
                  if( 
is_user_connected(i) && is_user_alive(i) )
                  {
                           new 
Float:plrorigin[3]
                           
pev(ipev_originplrorigin)
                           
                           
// How to get Direction????
                           
                           
server_print("%f %f %f, Distance: %f"direction[0], direction[1], direction[2], get_distance_f(plroriginorigin))
                  }
         }

How I can get the Direction?
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
 



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 01:42.


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