get_user_aim help...
how do i find...
1. if user is aiming at bot 2. aining at one player 3. aiming at more than one player 4. at a ent with a certian model or type...etc ty.. |
Re: get_user_aim help...
For question 3 I dunno. With get_user_aiming it not possible though.
Code:
|
Re: get_user_aim help...
so 2 returns the first one is players the second one is entites? and for 3 can't i like if the index is higher than 1 or something, i mean whats the diffrence when look at one index or 2 won't the id return more than 1?
|
Re: get_user_aim help...
No, first parameter of get_user_aiming is the person who you are checking their aim. Second argument is what entity index is return byref. So if the index is greater than 0 and less than or equal 32 than it is a player. If it Greater than 32 than it an entity.
|
Re: get_user_aim help...
so there is no possible way to find if out if hes aiming at more than one player...?
edit: how about tryin to use find_ent_in_sphre on the index of the player like when u check if he is aimin at someone and then check if there is players beside that player(in the sphre) but i need the index of the aimed at player!? |
Re: get_user_aim help...
Code:
|
Re: get_user_aim help...
ur code make no sence i want 4 return bot, player, more than one player, entity
|
Re: get_user_aim help...
Use traceline for #3.
|
Re: get_user_aim help...
For #3...jghg made a plugin that sends an enemy spotted radio message with an alt message saying how many enemys spotted....by how many are in sight of the transmitting player.
Maybe his code could help you there. Enemy Spotted::JGHG |
Re: get_user_aim help...
He said "aiming", this is a different things.
Quote:
|
| All times are GMT -4. The time now is 06:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.