Luke_Ferrara Posted May 22, 2010 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
Xierra Posted May 22, 2010 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. XX3 is gone. This is my new name. :3
Luke_Ferrara Posted May 22, 2010 Author 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.
50p Posted May 22, 2010 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 - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Luke_Ferrara Posted May 23, 2010 Author 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
dzek (varez) Posted May 23, 2010 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? Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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