Default Camera Coordinates
#1

I'm not sure how to go about getting these coordinates, so I thought I'd ask.

When you join the a game, it starts with a default view overlooking some water and part of a town (I think it's part of Blueberry). Anyways, I need the exact coordinates to use for SetPlayerCameraPos and SetPlayerCameraLookAt so I can make a view that looks exactly the same as when you're joining the game.

It's sort of a silly reason for wanting to do this, but if someone knows these coordinates or can tell me how I'd go about getting them, I'd be very grateful.

EDIT
I forgot to add that I don't want the coordinates that TogglePlayerSpectating uses. The ones that you see when you first join a game are what I want. If you have an empty OnPlayerConnect and OnPlayerRequestClass function in a blank gamemode, you can sit at the coordinates I want, I just need to figure out how to save them.
Reply
#2

pawn Код:
AddPlayerClass(0,1133.0504,-2038.4034,69.1000,262.0000,0,0,0,0,0,0); //
Float: x = 1133.0504
Float: y= -2038.4034
Float: z= 69.1000
Float: z_angle = 262.0000

I think, that is the coords of that place.

I hope u know how to use it.
Reply
#3

You can do it the old way but there's plenty of ways to do this really easily. Downloading JernejL's Map Editor simplifies the whole process and will save you alot of time figuring out how to get the correct coordinates.

https://hostr.co/file/6Qi9SDUEynGC/camera.png

Look at whatever location you want to, press "Copy CameraLookAt() Coords" and paste the codes you got from that under:

pawn Код:
public OnPlayerRequestClass(playerid)
{
    // here
}
Make sure to spawn your player at that location though (somewhere below or above, add about +3 to the "z" coordinate) or the textures will be messed up.
Reply
#4

Quote:
Originally Posted by Hanuman
Посмотреть сообщение
pawn Код:
AddPlayerClass(0,1133.0504,-2038.4034,69.1000,262.0000,0,0,0,0,0,0); //
Float: x = 1133.0504
Float: y= -2038.4034
Float: z= 69.1000
Float: z_angle = 262.0000

I think, that is the coords of that place.

I hope u know how to use it.
That is not at all the location I want :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)