ميدوح Posted November 17, 2016 Share Posted November 17, 2016 السلام عليكم ورحمة الله وبركاته كيفكم؟ ابي سوي local cj = getLocalPlayer() bindKey ( "1", "down", function() if cj then outputChatBox("cj") local x1,y1,z1 = 2485.00000, -1667.00000, 86.20466 local x2,y2,z2 = 2485.00000, -1667.00000, 20.20466 local x3,y3,z3 = 2263.43066, -1658.47412, 15.21893 local px, py, pz = getElementPosition(localPlayer) local xs,ys,zs = interpolateBetween ( x1,y1,z1, px, py, pz-20,0, "OutQuad") setCameraMatrix(xs,ys,zs,px, py, pz-20,0,0) else local xs2,ys2,zs2 = interpolateBetween ( x2,y2,z2, x2,y2,z2,0, "OutQuad") setCameraMatrix(x3,y3,z3,xs2,ys2,zs2,0,0) setCameraTarget (localPlayer) end end ) ما حرك Link to comment
#BrosS Posted November 17, 2016 Share Posted November 17, 2016 أحسن اختيار https://wiki.multitheftauto.com/wiki/SmoothMoveCamera بعد الكود سوي احداثياتك smoothMoveCamera(x1,y1,z1,x1t,y1t,z1t,x2,y2,z2,x2t,y2t,z2t,38000) -- الوقت اللي تاخذه لتصل اظن انه واضح Link to comment
</Mr.Tn6eL> Posted November 17, 2016 Share Posted November 17, 2016 interpolateBetween تستخدم لجب القيمة بين أ و ب بنسبة معينة وتحتاج تحديث راجع صفحة الوظيفة تلاحظ مستخدم رندر او انك تستخدم createAnimation 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