Camera scripting questions
#1

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.
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
Reply
#3

And the coordinates are based on the player's position? I mean the origin should be the center of the car, right?
Reply
#4

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
And the coordinates are based on the player's position? I mean the origin should be the center of the car, right?
I believe on the camera position, Once you used SetCameraPos. Then the camera looks towards a certain direction.

Never really used them myself.
Reply
#5

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...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)