M[ROYAL]R Posted July 18, 2015 Share Posted July 18, 2015 السلام عليكم لو سمحت انا عاوز فنكشن او كود اى شئ يقولى كيف اخلى vehicle يتحرك يعنى يكون setcamera شغال و vehicle يتحرك شكرآ Link to comment
Froze Posted July 18, 2015 Share Posted July 18, 2015 وضح طلبك يعني تبي تسوي setCameraMatrix وتخلي المركبه تمشي ؟ Link to comment
Froze Posted July 18, 2015 Share Posted July 18, 2015 عادي تقدر تتحرك وانت مسوي كاميرا ماتركس بس الكام ما يجي عليك يجي على المكان الي محدده انت Link to comment
M[ROYAL]R Posted July 18, 2015 Author Share Posted July 18, 2015 يا اخى انا ابى اسويه مثل انترو Link to comment
' A F . Posted July 18, 2015 Share Posted July 18, 2015 آتوقع ان وآحد طلب نفس طلبك وعنآد عطآهة . Event : onClientPreRender setCameraMatrix آتوقع ماني متأكد هو نفس طلبك ولا لا Link to comment
M[ROYAL]R Posted July 18, 2015 Author Share Posted July 18, 2015 انا مو ذا طلبى انا طلبى كيف احرك موتر و انا فى وضع الكاميرا ماتركس Link to comment
Ac[T]ioN Posted July 19, 2015 Share Posted July 19, 2015 هو يقصد إنه مسوي سيارة يبي السيارة ذي تلف مثلاً ( تدور ) وحاطط كاميرا عاديه في نفس المكان اللي فيها السيارة Link to comment
M[ROYAL]R Posted July 19, 2015 Author Share Posted July 19, 2015 هو يقصد إنه مسوي سيارة يبي السيارة ذي تلف مثلاً ( تدور ) وحاطط كاميرا عاديه في نفس المكان اللي فيها السيارة ايوا انا ابى هيك Link to comment
Ac[T]ioN Posted July 19, 2015 Share Posted July 19, 2015 هو يقصد إنه مسوي سيارة يبي السيارة ذي تلف مثلاً ( تدور ) وحاطط كاميرا عاديه في نفس المكان اللي فيها السيارة ايوا انا ابى هيك عطاه لك زاحف setElementRotation Link to comment
Mr.R Posted July 19, 2015 Share Posted July 19, 2015 شف مثال الويكي ممكن يفيدك الكود من جانب كلنت function carRotate( ) if isPedInVehicle(localPlayer) then localVehicle = getPedOccupiedVehicle(localPlayer) if getVehicleController(localVehicle) == localPlayer then local rotX, rotY, rotZ = getElementRotation(localVehicle) setElementRotation(localVehicle,rotX,rotY,rotZ+10) end end end addCommandHandler ( "turn", carRotate ) Link to comment
M[ROYAL]R Posted July 19, 2015 Author Share Posted July 19, 2015 شف مثال الويكي ممكن يفيدكالكود من جانب كلنت function carRotate( ) if isPedInVehicle(localPlayer) then localVehicle = getPedOccupiedVehicle(localPlayer) if getVehicleController(localVehicle) == localPlayer then local rotX, rotY, rotZ = getElementRotation(localVehicle) setElementRotation(localVehicle,rotX,rotY,rotZ+10) end end end addCommandHandler ( "turn", carRotate ) انا مو فاهمه اوى ممكن توضحه Link to comment
i S6O Posted July 19, 2015 Share Posted July 19, 2015 function Example ( ) if isPedInVehicle ( localPlayer ) then -- يتاكد ان الاعب بسيارة localVehicle = getPedOccupiedVehicle( localPlayer ) -- يجيب سيارة الاعب if getVehicleController(localVehicle) == localPlayer then -- يتاكد انه لاعب يتحرك بسيارة local rotX, rotY, rotZ = getElementRotation(localVehicle) -- يجيب احداثيات لفت الكاميرا حقت السيارة setElementRotation( localVehicle,rotX,rotY,rotZ+10 ) -- يحط الكاميرا على سياره اذا لفت اي مكان end -- انها if end -- انها if end -- انها function addCommandHandler ( "turn", Example ) -- يضيف كلمه بأف 8 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