Get distance player to the wall ?
How to get distance player to the wall ( func_wall; func_breakable; etc. ) ?
|
Re: Get distance player to the wall ?
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 |
Re: Get distance player to the wall ?
get_distance
get_distance_f TraceLine |
| All times are GMT -4. The time now is 14:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.