Using trace_line
I'm trying to use trace_line to find if it hits an entity/map texture.
What does it return if it hits nothing or a map texture? |
pHit would probably be 0, and I assume that flFraction would be 1.0
|
So I would have to use the trace_line, then the result?
I checked out the trace result on the funcwiki, but Code:
traceresult ( type, [ ... ] ) |
Hmm, try this:
Code:
|
Will do and thanks.
|
Wound'nt it be: ?
Code:
new pHit |
I think if there are no extra parameters it returns the value as an integer. If there are one extra parameters it sets a float by reference. If there are two extra parameters it sets a string by reference. This is the general format of FM stuff.
|
Quote:
Code:
|
| All times are GMT -4. The time now is 23:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.