#BrosS Posted December 11, 2016 Posted December 11, 2016 Hello, Who's it going bros my name's PEEEWDIEEPIEE ,kidding I have a login panel and i want to use diffrent camera .. Example , setcameramatrix for a place and after 5 secs the camera pos change and another 5 changes , Would you please help “من أراد الفشل عليه بالنجاح”
Miika Posted December 11, 2016 Posted December 11, 2016 cameras = { {x, y, z, rx, ry, rz}; {x, y, z, rx, ry, rz}; {x, y, z, rx, ry, rz}; } local Cameramode = 0 function cameraHandler( enablecam = true timer = setTimer(function() if enablecam == true then if Cameramode == #cameras then Cameramode = 1 else Cameramode = Cameramode + 1 end setCameraMatrix(cameras[Cameramode][1], cameras[Cameramode][2], cameras[Cameramode][3], cameras[Cameramode][4], cameras[Cameramode][5], cameras[Cameramode][6]) else killTimer(timer) end end, 5000, 0) end Add this to your script. Change x, y, z, rx, ry, rz to your camera coordinates. When you want to enable camera, add cameraHandler() to your script. and when you want to disable camera, add this to your code: enablecam = false Btw, haven't tested, because I wrote this all on phone. 1 Real motorbike backflip / frontflip script: https://forum.mtasa.com/viewtopic.php?f=108&t=98191
#BrosS Posted December 12, 2016 Author Posted December 12, 2016 Thanks mate <3 1 “من أراد الفشل عليه بالنجاح”
ViRuZGamiing Posted December 12, 2016 Posted December 12, 2016 20 hours ago, Miika822 said: if enablecam == true then why not just write 20 hours ago, Miika822 said: if enablecam then 1 "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
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