TraceLine
Ok having a bit of difficulty in understanding traceline.
I need to get the user im looking at while firing and the hitzone im firing at. Code:
Code:
|
Code:
mahnsawce has changed the function to use a global traceresult. Use this code instead. |
tnx alot :)
|
Actually, sorry to add to your thread but what does traceline do exactly? Im interested in finding a function that can non-visually trace a line from a given coord/angle and measure the distance before it hits a surface and I didnt know if traceline could do this.
|
TraceLine returns 2 positions the starting point of the trace and the ending point of a trace. Its a forward so it returns some stuff in it. Like if your looking at a player u can find the index of a player and what hitzone your aiming at. And some other stuff.
|
Ah, so its not actually possible to initiate a trace from withing AMXX?
|
it's possible with fakemeta module:
engfunc(EngFunc_TraceLine ... <get/set>_tr() see fakemeta_const and fakemeta includes |
Hmm I'll take a look. I did look earlier but it was a bit spartan.
|
| All times are GMT -4. The time now is 17:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.