Jump to content

Camera Functions?


Recommended Posts

From Wiki:

function setCameraOnPlayerJoin()
-- slowly fade the camera in to make the screen visible
fadeCamera(source, true, 5)
setCameraInterior ( source, 18)
-- set the player's camera to a fixed position, looking at a fixed point
setCameraMatrix(source, 181.07878112793, -88.078994750977, 1002.0307006836, 14698.388671875, -918.42474365234, 99.8818130493)
 
end
addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin)

I am trying to set the camera towards a mirror in ZIP, however I do not understand

"lookAT" x, y and z, I tried creating an interior on interior ID 0 but the mirror becomes a window to see through...Could someone give me some guidance with camera functions...wiki doesn't explain enough

Link to comment

Maybe the "lookat" is the coordinates the camera will point to.

Example: You put camera on the cashier. You put lookat on the mirror, then the camera will point at the "lookat".

It can also be put like on the vehicle, ped, or player, with a xyz variable.

So lookat means you want the camera to look at a place. the lookat is the point where the camera will be facing at.

Link to comment

i think you can't add mirrors other than native SA. becouse SA mirrors aren't really mirrors.. gta engine can't do that.. mirrors are just glasses, but in some interiors gta "clones" all objects behind this glass, so it looks like window. pretty stupid, huh?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...