Where player aim -> Same angle to object.
how to do that?
|
Re: Where player aim -> Same angle to object.
What do you mean? Do you mean getting the aiming origin?
If so, use fakemeta_util's stock: PHP Code:
|
Re: Where player aim -> Same angle to object.
yes i want get where player is watching, and in same view(angle) set the entity, i mean entity will rotate like a player, for example how it works with MOVETYPE_FOLLOW.
|
Re: Where player aim -> Same angle to object.
You'd have to get the forward vector. Here's an example:
Code:
You can also make it go to the right, up, etc, using glb_v_right and glb_v_up. |
Re: Where player aim -> Same angle to object.
Instead of the user's origin, I would suggest using the origin from his eyes:
PHP Code:
|
Re: Where player aim -> Same angle to object.
no guys thats not that. i want that entity will be rotating like my player model rotataing
if i'm watching to right, the entity will watch there too. EDIT: going try that PHP Code:
|
Re: Where player aim -> Same angle to object.
You can only do that if the model is an entity.
Maybe try view angles: PHP Code:
|
Re: Where player aim -> Same angle to object.
I think you have to get the player's v_angles then set the entity's angle using that.
|
Re: Where player aim -> Same angle to object.
Quote:
|
Re: Where player aim -> Same angle to object.
i used that what i posted above, and it worked perfect
|
| All times are GMT -4. The time now is 09:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.