Posts: 3,002
Threads: 86
Joined: Jul 2010
Reputation:
0
Hey there...is there a possible way to set a camera based on the player position? For example, I made a tuning menu using a dialog. But since the dialog can't be moved from the center of the screen I am thinking of warping the camera in different positions, so the player can see the changing car parts.
Posts: 3,002
Threads: 86
Joined: Jul 2010
Reputation:
0
And the coordinates are based on the player's position? I mean the origin should be the center of the car, right?
Posts: 3,002
Threads: 86
Joined: Jul 2010
Reputation:
0
It doesnt work how i need it...basically, those functions, allow you to set a camera to some certain coordinates. The setcameralookat works like this. You put the coordinates, and the camera will look at them, no matter the distance. The coordinates are based on the map origin (the middle of san andreas) x=y=z=0.
What I need to do is, to change the origin. I need it to be the center of the car, not the center of the map. That way, the cameras will always look at the car areas I need, no matter the player's position on the map.
I hope I made myself clear enough, so that somebody can help me...