Traceline problem
Hey, I've got this code
PHP Code:
How can I do that it registers only when I hit someone in the head? |
Re: Traceline problem
PHP Code:
|
Re: Traceline problem
Don't hook FM_TraceLine, it was something done in plugins few years ago when no other tools were avalaible.
Hook TraceAttack or TakeDamage (previous post contain useless check), depending on your needs. |
Re: Traceline problem
Why useless ? What if the attacker is not a player ?
|
Re: Traceline problem
Ah, I used traceline for a bool that I later used in TakeDamage. I didn't know you can get hitzone from takedamage. That will be useful, thank you :)
|
Re: Traceline problem
Quote:
|
| All times are GMT -4. The time now is 23:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.