Simba Posted April 20, 2014 Share Posted April 20, 2014 السلام عليكم ... عندي استفسار لهذا الفنكشن setCameraMatrix السنتاكسس bool setCameraMatrix ( float positionX, float positionY, float positionZ [, float lookAtX, float lookAtY, float lookAtZ, float roll = 0, float fov = 70 ] ) Optional Arguments rool كيف اجيبها واش هي fov ; كيف اجيبها واش هي ال x y z هذول الاحداثيات اجيبهم عن طريق اني اكتب /gp بس rool fov ما اعرفلهم ---- ولما احط احداثيات الكامير الكامير تطل لجهة ثانية \ انا ابغاها تكون على اليمين شوي او فوق شوي وكذا كيف اسويهاا ؟؟ اتمنى الردد edit ## bindKey ( "F7" , "down" , function() setCameraMatrix(1501.8000488281,-1645.59997558,23.7000007629, 0, 0, 237.763992, 0, 70) end ) bindKey ( "F6" , "down" , function() setCameraTarget( localPlayer ) end ) Link to comment
EH10 Posted April 20, 2014 Share Posted April 20, 2014 ٍSyntax bool setCameraMatrix ( player thePlayer, float positionX, float positionY, float positionZ [, float lookAtX, float lookAtY, float lookAtZ, float roll = 0, float fov = 70 ] ) انت شوف السينتاكس وتشوف تحته هاذا Required Arguments thePlayer: The player whose camera is to be changed. positionX: The x coordinate of the camera's position. positionY: The y coordinate of the camera's position. positionZ: The z coordinate of the camera's position. Optional Arguments lookAtX: The x coordinate of the point the camera faces. lookAtY: The y coordinate of the point the camera faces. lookAtZ: The z coordinate of the point the camera faces. roll: The camera roll angle, -180 to 180. A value of 0 means the camera sits straight, positive values will turn it counter-clockwise and negative values will turn it clockwise. -180 or 180 means the camera is upside down. fov: the field of view angle, 0 to 180. The higher this value is, the more you will be able to see what is to your sides. واذا تبي الكود setCameraMatrix(source, 0, 0, 0, 0, 0, 0) Link to comment
abu5lf Posted April 20, 2014 Share Posted April 20, 2014 انا اذا بغيت اجيب احداثيات الكاميرة اشغل مود freecam واخذ الاحداثيات من خلال ذي الوظيفة getCameraMatrix Link to comment
Simba Posted April 20, 2014 Author Share Posted April 20, 2014 انا اذا بغيت اجيب احداثيات الكاميرة اشغل مودfreecam واخذ الاحداثيات من خلال ذي الوظيفة getCameraMatrix كيف استخدم هذا المود freecam ?? Link to comment
abu5lf Posted April 20, 2014 Share Posted April 20, 2014 ادخل مود freecam ملف (freecam_server.lua): حط الكود ذا : addCommandHandler( 'freecam', function( player ) if( not isPlayerFreecamEnabled(player) )then local x, y, z = getElementPosition(player) setPlayerFreecamEnabled(player, x, y, z+5, dontChangeFixedMode) else setPlayerFreecamDisabled(player, dontChangeFixedMode) setCameraTarget( player ) end end ) /freecam اكتب في اف 8 واذا بغيت ترجع الكاميرة اكتب نفس الكلمة مرة ثانية وهنا كود حطه في اي ملف كلنت addCommandHandler("getCamera",function() outputChatBox("setCameraMatrix(" .. table.concat({getCameraMatrix()},", ") ..")") end) /getCamera اكتب هذي الكلمة ب اف 8 ويجيك كلام في الشات انسخه كامل وحطه بكودك Link to comment
#DRAGON!FIRE Posted April 21, 2014 Share Posted April 21, 2014 # وعليكم السلأم ... setCameraMatrix: This function sets the camera's position and direction. The first three arguments are the point at which the camera lies, the last three are the point the camera faces (or the point it "looks at"). Note: Calling this function takes the camera's focus away from the player and sets the camera in a fixed position and rotation. The camera's focus can be brought back to the player using the setCameraTarget function. Client Syntax bool setCameraMatrix ( float positionX, float positionY, float positionZ [, float lookAtX, float lookAtY, float lookAtZ, float roll = 0, float fov = 70 ] ) # ببساطة فائدة الفنكشن انه يحط لك الكميرا بـ احداثيات محدةة .. كيف اقدر اجيب الاحداثيات او الارقمنات المطلوبة . x, y, z اول 3 ارقمنات معروفة getCameraMatrix الـ 3 اللي بعدها تجيبهم عن طريق فنكشن ويمديك تجيب اول 6 ارقمنات من ذا الفنكشن مثال بسيط كيف تجيب الاحداثيات : ... addCommandHandler( "GetCameraPos", function ( ) local x, y, z, xl, yl, zl = getCameraMatrix( ) if ( x == 0 or y == 0 or z == 0 ) then return end setClipboard(" "..x..", "..y..", "..z..", "..xl..", "..yl..", "..zl.." ") end ) setCameraMatrix وبتنسخ لك الاحداثيات كاملة بس عليك تحطها بـ GetCameraPos تقوم بـ كتابة الأمر Link to comment
abu5lf Posted April 21, 2014 Share Posted April 21, 2014 ^ردي يكفي ماشوف ل ردك اهمية !؟ Link to comment
#DRAGON!FIRE Posted April 21, 2014 Share Posted April 21, 2014 ^ردي يكفي ماشوف ل ردك اهمية !؟ هذا مجرد اقتباس عشان لو ما فهم يفهم من ردي .. والرد موجود سابقا يعني يمديه يشوفه بس حطيته هنا لو ما يدري عنه ذذ Link to comment
abu5lf Posted April 21, 2014 Share Posted April 21, 2014 ^ردي يكفي ماشوف ل ردك اهمية !؟ هذا مجرد اقتباس عشان لو ما فهم يفهم من ردي .. والرد موجود سابقا يعني يمديه يشوفه بس حطيته هنا لو ما يدري عنه ذذ حبذا لو فيه شخص ساعدناه تحط مساعده بعدها، لان الناس ماتفهم الا منك ماشاء الله عليك 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