Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, SBGuy), 987 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | chip programmers | 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