Need an event
Hello guys =)
How is the event called, witch is fired when anybody is aiming at a player? I need the id of the player im aiming at. Hope u can help me. Mottzi |
Re: Need an event
witch? in L4D?
hook FM_TraceLine and get_tr(TR_pHit) to get the entity you are aiming at |
Re: Need an event
no, i want the id of the player im aiming. i dont want a entity
|
Re: Need an event
See StatusText and StatusValue, but it's depending on mp_playerid value.
Otherwise see get_user_aiming native, but you gonna need to fire it quite often. |
Re: Need an event
can you give me an example how to do this?
In the doc stands if a player aims to another player get_user_aiming returns the id (2. paramather) |
Re: Need an event
After looking at the command, it looks as if you could do this.
PHP Code:
targetid is the id of who the player is aiming at |
Re: Need an event
Buh im doing this on prethink.
|
Re: Need an event
Quote:
|
| All times are GMT -4. The time now is 14:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.