Lloyd Logan Posted February 8, 2013 Posted February 8, 2013 Why doesn't this work? I show the camera sideways underwater. It show the matrix of the Burger shot which interior is 10. function acceptj(thePlayer) if setCameraInterior( thePlayer, 10) then setCameraMatrix(thePlayer, 377.54309082031, -65.136703491211, 1002.3890991211, 376.56094360352, -65.279510498047, 1002.2667236328) end addCommandHandler("ajob", acceptj)
Lloyd Logan Posted February 8, 2013 Author Posted February 8, 2013 Any bad arguments? None whatsoever, maybe it's a different dimension?
CapY Posted February 8, 2013 Posted February 8, 2013 Why doesn't this work? I show the camera sideways underwater. It show the matrix of the Burger shot which interior is 10. function acceptj(thePlayer) if setCameraInterior( thePlayer, 10) then setCameraMatrix(thePlayer, 377.54309082031, -65.136703491211, 1002.3890991211, 376.56094360352, -65.279510498047, 1002.2667236328) end addCommandHandler("ajob", acceptj) You didn't end the "if" condition.
Lloyd Logan Posted February 8, 2013 Author Posted February 8, 2013 Why doesn't this work? I show the camera sideways underwater. It show the matrix of the Burger shot which interior is 10. function acceptj(thePlayer) if setCameraInterior( thePlayer, 10) then setCameraMatrix(thePlayer, 377.54309082031, -65.136703491211, 1002.3890991211, 376.56094360352, -65.279510498047, 1002.2667236328) end addCommandHandler("ajob", acceptj) You didn't end the "if" condition. I realised that just before i read this! Still nothing
3NAD Posted February 8, 2013 Posted February 8, 2013 function acceptj ( thePlayer ) if getElementType ( thePlayer ) == "player" then setCameraInterior ( thePlayer, 10 ) setCameraMatrix ( thePlayer, 377.54309082031, -65.136703491211, 1002.3890991211, 376.56094360352, -65.279510498047, 1002.2667236328 ) end end addCommandHandler ( "ajob", acceptj ) # Note : I guess the Problem at Position or Rotation of Camera.
Lloyd Logan Posted February 8, 2013 Author Posted February 8, 2013 3NAD, Bad Argument at getElementType?
iPrestege Posted February 8, 2013 Posted February 8, 2013 -- Server Side And As "3NAD" Say Check The Position!? function acceptj(thePlayer) if (getElementType(thePlayer) == "player") then setCameraInterior ( thePlayer, 10 ) setCameraMatrix ( thePlayer, 377.54309082031, -65.136703491211, 1002.3890991211, 376.56094360352, -65.279510498047, 1002.2667236328) end end addCommandHandler ( "ajob", acceptj )
Lloyd Logan Posted February 8, 2013 Author Posted February 8, 2013 Everything is now black, except the cursor on the map?
iPrestege Posted February 8, 2013 Posted February 8, 2013 Everything is now black, except the cursor on the map? Will, Now, Are You Sure About The Position ? . Update : The Problem is On The Position i Test it on This Position And Works Great! I I've tested this and it works: function acceptj(thePlayer) if (getElementType(thePlayer) == "player") then setCameraInterior(thePlayer, 10) setCameraMatrix (thePlayer,-2865.09838, 1488.72497, 155.71398, -2261.01758, 2327.17847, 19.21039) end end addCommandHandler ( "ajob", acceptj )
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