Raised This Month: $ Target: $400
 0% 

Vectors - calculating position in front of a player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
t3hNox
Senior Member
Join Date: Oct 2009
Old 06-25-2011 , 15:24   Vectors - calculating position in front of a player
Reply With Quote #1

I know that this problem has been already discussed, but I just can't find any useful topic about it.
I'm looking for a piece of code that can calculate origin, let's say, 40.0 units in front of a player. Height should be also observed (start point is a player, end point is the point where the player is aiming). It's probably some traceline function + xs, but I can't find any reference to xs functions therefore I don't know how to use them.
t3hNox 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 23:31.


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