Jump to content

help login camera


Jacobob14

Recommended Posts

I can do that for the camera continue login panel on the assigned place when reconnected forgive my bad English :(:(

time = getTickCount() 
x = 1000 
y = 200 
z = 20 
 setCameraMatrix(2083.666015625, 1265.44921875, 34.367343902588, 0,  0, 0) 
 if (getTickCount() - time >= 5000) then --if animation lasts for 5 or more seconds 
  removeEventHandler("onClientPreRender", getRootElement(), anim) -- stop it 
end 
addEventHandler("onClientPreRender", getRootElement(), anim) 

Link to comment

You can use interpolateBetween to make a smooth movement between two coordinates. You can also alternatively use smoothMoveCamera if you want to, it's not too efficient when comparing interpolateBetween however, because it creates an unnecessary object and moves the object instead of the camera coordinates. With interpolateBetween you can drop the object and just move the camera, this way you have one less thing to do and practically is faster and more trustworthy.

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