HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

GetPlayerCameraX/Y/Z?

09-27-2009, 02:10 PM#1
Mr.Malte
Hey.
I've been looking for a function or a way to detect which coordinates a player is viewing at the moment.
And it should be explicit.
Is there any way to do that?

Or can I simply make that using arrow keys doesn't affect the camera for a short time?
09-27-2009, 02:35 PM#2
Viikuna-
GetCameraTargetPositionX, -Y & -Z functions exist, but since camera stuff is different every player, its like local data, so you need to figgure out some way to sync it, which is possible, but cant be made instant, because there is always some delay in multiplayer.
09-27-2009, 02:37 PM#3
Tot
Quote:
Originally Posted by Mr. Malte
Hey.
I've been looking for a function or a way to detect which coordinates a player is viewing at the moment.
And it should be explicit.
Is there any way to do that?

Don't know exactly, probably something with GetLocalPlayer() and GetCameraTargetPositionX(), GetCameraTargetPositionY() and GetCameraTargetPositionZ()
Quote:
Originally Posted by Mr. Malte
Or can I simply make that using arrow keys doesn't affect the camera for a short time?

such a thing would be really great