Looking at?..
Well, I'm making a plugin but I can't really get a grasp on it.
I'm trying to figure out how to find the closest player who's looking at you, and you are looking at him.. Also, how do I get an entity for a player. My friend suggest that I use is_visible. Sounds logical (If theres not a better way) but I don't use engine much. I was thinking its like.. new player=find_ent_by_class(-1,"Player") |
yea i think the ent thing is right...yoou could take a look at physic or w/e that name is from super hero mod...she does the exact samething(finds the closet player)...
|
Code:
Maybe? |
I mean generally looking at -- that's positively aiming at..
|
Yea..
|
Yes, what this peep with pistol said.
get_user_aiming is what you need. |
How would I tell if they were both looking at eachotheR? it's confusing the hell out of me.
Would I use a variable that checks all players? If so then how do i find the id of the original dude looking at the dude. I was going to do if(equali(originalid,targetoflooker)) { but i don't think it'll work or something. *sigh* |
Code:
something like that...not sure if this will work though... |
I don't understand that code at all. I'm hoping it doesn't work because it looks very decapritated.
|
well i coudnt really indent or anything cuz i amde it through the post :/
|
| All times are GMT -4. The time now is 14:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.