Jump to content

setCameraInterior


Lloyd Logan

Recommended Posts

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) 

Link to comment
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.

Link to comment
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 :(

Link to comment
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.

Link to comment
-- 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 ) 

Link to comment
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 ) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...