Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,619 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Playermodel looking at mouse direction #256754
03/18/09 20:41
03/18/09 20:41
Joined: Oct 2008
Posts: 112
N
Ness Offline OP
Member
Ness  Offline OP
Member
N

Joined: Oct 2008
Posts: 112
Hello,how do i can make this,that the player have to look at mouse direction?



Like this,that the pan angle changes it value and the player looks to the mouse.

Re: Playermodel looking at mouse direction [Re: Ness] #256900
03/19/09 13:33
03/19/09 13:33
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Do you use a strict top-down perspectiv? (camera.tilt = -90) or is it something different?

Re: Playermodel looking at mouse direction [Re: Xarthor] #256919
03/19/09 15:02
03/19/09 15:02
Joined: Oct 2008
Posts: 112
N
Ness Offline OP
Member
Ness  Offline OP
Member
N

Joined: Oct 2008
Posts: 112
Both:
First is Top-Down perpective!
And the other is free.hope that i can use the script for any angle!

Re: Playermodel looking at mouse direction [Re: Ness] #257037
03/20/09 07:33
03/20/09 07:33
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
Create a vector (or an entity, if you want) below the mouse, at the same height with player.z. Then, use vec_to_angle to rotate the player towards that vector / entity.

Re: Playermodel looking at mouse direction [Re: George] #257555
03/23/09 22:35
03/23/09 22:35
Joined: Oct 2008
Posts: 112
N
Ness Offline OP
Member
Ness  Offline OP
Member
N

Joined: Oct 2008
Posts: 112
there was a tutorial for this in aum!
Someone know which aum it was?
greetings ness


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1