Jump to content

Camera in other dimension


RyuMaster

Recommended Posts

Hi! I have this problem. I spawn player on ther server inside certain interrior on the server side:

source:spawn(startX,startY, startZ + 0.5, 0, jobModel, interriorID, playerDim, Team.getFromName(playerTeam))

Then, on the client side this is triggered:

	    fadeCamera(true, 1)
    setCameraInterior(interriorID)
    setCameraMatrix(startX - 2, startY, startZ )
	
    guiSetInputEnabled(true)
    toggleAllControls (false, true, true) 
    showCursor(true)
	

My idea is to fix camera in space, and take all control from the player. This drops no errors, and player can not be controller. But, camera is always shown from behind normally, seems like all my camera functions are just being ingnored. Maybe because I run them just after the player spawns in interrior, and that makes some overwrites? Any ideas? 

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...