Jump to content

On Join Plane and Login Panel


Captain Cody

Recommended Posts

on client resource started check is player join the server first time, which I have give you a example above

if so, create a AT-400

local plane = createVehicle( id, x,y,z) -- create a AT-400

--create a camera to plane

cam = getCamera()

setElementPosition( cam, 0,0,0 ) -- Clear camera target

attachElements( cam, plane , 0,-4,2, -20,0,0 ) -- set camera focus on the plane

-- let the plane fly

local origX, origY, origZ = getElementPosition ( plane ) --get the origanal position

local newZ = origZ + 100 -- make a new z position, so on for x,y

moveObject ( theObject, 10000, newX, newY, newZ ) --move the object to this position in 10 seconds.

the camera will focus on the plane when the plane is flying. after that you can set a 10s timer to destory all of those elements and shows up your login panel.

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