Deepu Posted March 21, 2014 Posted March 21, 2014 function muthru () if isElement(localPlayer) then setCameraTarget(localPlayer) end end function closer () if RCPlane and isElement(RCPlane) then if renderHandler then removeEventHandler("onClientRender", root, renderCameraMatrix) guiSetVisible(controls, false) showCursor(false) local health = getElementHealth(localPlayer) blowVehicle(RCPlane) setElementHealth(localPlayer, tonumber(health)) addEventHandler("onClientRender", root, muthru) end end end function getPositionFromElementOffset(element,offX,offY,offZ) local m = getElementMatrix ( element ) local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] return x, y, z end local renderCameraMatrix = function () if isElement(RCPlane)then local vX, vY, vZ = getElementPosition(RCPlane) local cX, cY, cZ = getPositionFromElementOffset(RCPlane, 0, -4, 2) rolls = getElementRotation(RCPlane) setCameraMatrix(cX, cY, cZ, vX, vY, vZ, rolls) end end so, the problem is I can setTarget to me but its not the same camera type like I played before..... How to stop rendering this renderCameraMatrix so I can set the camera target back to mine... ? please help it is urgent WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Castillo Posted March 21, 2014 Posted March 21, 2014 What do you mean by "it's not the same camera type"? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Deepu Posted March 21, 2014 Author Posted March 21, 2014 Nothing castillo, I fixed it..... WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
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