Luke_Ferrara Posted May 22, 2010 Share Posted May 22, 2010 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
Xierra Posted May 22, 2010 Share Posted May 22, 2010 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
Luke_Ferrara Posted May 22, 2010 Author Share Posted May 22, 2010 Ohhh I see, but how would you be able to get the lookat coordinates without guessing? Like how you can use resources in the community or even the admin panel to get your xyz coordinates but never the lookat coords. Link to comment
50p Posted May 22, 2010 Share Posted May 22, 2010 Ohhh I see, but how would you be able to get the lookat coordinates without guessing? Like how you can use resources in the community or even the admin panel to get your xyz coordinates but never the lookat coords. You can get coords in different ways. One of them is https://community.multitheftauto.com/index.php?p= ... ils&id=124 Link to comment
Luke_Ferrara Posted May 23, 2010 Author Share Posted May 23, 2010 Okay, I see how that works however what about the mirror? Any mirrors I script become see through and looks like a glassless window which kind of eliminates the point Link to comment
dzek (varez) Posted May 23, 2010 Share Posted May 23, 2010 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now