Raised This Month: $ Target: $400
 0% 

Get distance player to the wall ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 06-19-2010 , 12:10   Get distance player to the wall ?
Reply With Quote #1

How to get distance player to the wall ( func_wall; func_breakable; etc. ) ?
dFF is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 06-19-2010 , 12:13   Re: Get distance player to the wall ?
Reply With Quote #2

engfunc(EngFunc_TraceLine, vecStart, vecTarget, 0, id, trRes)
and then get_tr2(trRes, TR_vecEndPos, vecHit); to get the position it hit
and vector_distance(vecStart, vecHit) to get distance
hzqst is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-19-2010 , 12:14   Re: Get distance player to the wall ?
Reply With Quote #3

get_distance
get_distance_f
TraceLine
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Reply


Thread Tools
Display Modes

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 14:47.


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