AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   trace_line (https://forums.alliedmods.net/showthread.php?t=17283)

GHW_Chronic 08-28-2005 17:51

trace_line
 
some1 tell me if this is the propper way to use trace_line
Code:

new ent=trace_line(0,Start,End,EntsLocation)

GHW_Chronic 08-28-2005 20:13

bumpedy bumpedy BUMP

XxAvalanchexX 08-28-2005 20:38

Code:
new Float:hitcoord[3]; new hitent = trace_line(id, start, end, hitcoord);

The first parameter should be the index of the entity the start position originates from so it doesn't return that entity, but if the vector is just some predefined number use 0.

GHW_Chronic 08-28-2005 20:43

Thanks, I needed that info a lot :-D


All times are GMT -4. The time now is 14:31.

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