AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get distance player to the wall ? (https://forums.alliedmods.net/showthread.php?t=130034)

dFF 06-19-2010 12:10

Get distance player to the wall ?
 
How to get distance player to the wall ( func_wall; func_breakable; etc. ) ?

hzqst 06-19-2010 12:13

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

wrecked_ 06-19-2010 12:14

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.