How to determine whether the player is looking for an entity?
How to determine whether the player is looking for an entity?
|
Re: How to determine whether the player is looking for an entity?
PHP Code:
|
Re: How to determine whether the player is looking for an entity?
If searching a player, checking classname is pointless. From the index, checking if between 1 and maxclients is enough.
|
Re: How to determine whether the player is looking for an entity?
It was just an example. :)
|
Re: How to determine whether the player is looking for an entity?
So, give him the RIGHT code.
|
Re: How to determine whether the player is looking for an entity?
Quote:
|
Re: How to determine whether the player is looking for an entity?
Still, your example itself is bad. People who will see that are going to use unnecessary native by following your beautiful "example". It's a bad method and you lead people to a wrong usage of classname check. So, don't be approximative, change your "example", make a special for player and another for non-player entities. It would make more sense and would be helpful.
|
Re: How to determine whether the player is looking for an entity?
do you want to check if the player is looking an entity ?
|
Re: How to determine whether the player is looking for an entity?
Quote:
Quote:
Quote:
@lucas: Can you read the topic? Quote:
|
Re: How to determine whether the player is looking for an entity?
Quote:
Therefore, it should be for checking players only. You could write another stock that check if player is aiming at an entity with a given classname. Here are those 2 stocks: Code:
|
| All times are GMT -4. The time now is 23:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.