Jump to content

Camera in other dimension


RyuMaster

Recommended Posts

Posted

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? 

Posted (edited)

Unable to reproduce with the script provided. Do you have the full script?

Something else must be interfering with the camera. Another resource, perhaps? Spawn doesn't affect camera target.

Edited by myonlake

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