Jump to content

Help Please


mint3d

Recommended Posts

I couldn't get it to work but heres the script

    function () 
        setElementDimension ( getLocalPlayer(), 1 ) 
        setElementInterior( getLocalPlayer(), 0 ) 
        setCameraMatrix( 1055.4643554688, -2122.0646972656, 83.747100830078, 1054.6900634766, -2121.4748535156, 83.517967224121) 
        setCloudsEnabled(false) 
        fadeCamera(true) 
        guiSetInputEnabled(true) 
        clearChat() 
        LoginScreen_openLoginScreen() 
    end 
); 

Link to comment

I know its not but thats what i have already so ye i need help using the other one i Tried this

    function () 
        setElementDimension ( getLocalPlayer(), 1 ) 
        setElementInterior( getLocalPlayer(), 0 ) 
    --  setCameraMatrix( 1055.4643554688, -2122.0646972656, 83.747100830078, 1054.6900634766, -2121.4748535156, 83.517967224121) 
        smoothMoveCamera ( 1055.4643554688, -2122.0646972656, 83.747100830078, 1054.6900634766, -2121.4748535156, 83.517967224121, 1480, -1773, 108, 1480, -1688, 13, 200 ) 
        setCloudsEnabled(false) 
        fadeCamera(true) 
        guiSetInputEnabled(true) 
        clearChat() 
        LoginScreen_openLoginScreen() 
    end 

Link to comment
local sm = {} 
sm.moov = 0 
sm.object1, sm.object2 = nil, nil 
  
local function removeCamHandler () 
    if(sm.moov == 1) then 
        sm.moov = 0 
        removeEventHandler ( "onClientPreRender", getRootElement(), camRender ) 
    end 
end 
  
local function camRender () 
    local x1, y1, z1 = getElementPosition ( sm.object1 ) 
    local x2, y2, z2 = getElementPosition ( sm.object2 ) 
    setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) 
end 
  
function smoothMoveCamera (  1055.4643554688, -2122.0646972656, 83.747100830078, 1054.6900634766, -2121.4748535156, 83.517967224121, 1480, -1773, 108, 1480, -1688, 13, 200 ) 
    if(sm.moov == 1) then return false end 
    sm.object1 = createObject ( 1337, x1, y1, z1 ) 
    sm.object2 = createObject ( 1337, x1t, y1t, z1t ) 
    setElementAlpha ( sm.object1, 0 ) 
    setElementAlpha ( sm.object2, 0 ) 
    setObjectScale(sm.object1, 0.01) 
    setObjectScale(sm.object2, 0.01) 
    moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, "InOutQuad" ) 
    moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, "InOutQuad" ) 
  
    addEventHandler ( "onClientPreRender", getRootElement(), camRender ) 
    sm.moov = 1 
    setTimer ( removeCamHandler, time, 1 ) 
    setTimer ( destroyElement, time, 1, sm.object1 ) 
    setTimer ( destroyElement, time, 1, sm.object2 ) 
    return true 
end 

Tried this

Link to comment
local sm = {} 
sm.moov = 0 
sm.object1, sm.object2 = nil, nil 
  
local function removeCamHandler () 
    if(sm.moov == 1) then 
        sm.moov = 0 
        removeEventHandler ( "onClientPreRender", getRootElement(), camRender ) 
    end 
end 
  
local function camRender () 
    local x1, y1, z1 = getElementPosition ( sm.object1 ) 
    local x2, y2, z2 = getElementPosition ( sm.object2 ) 
    setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) 
end 
  
function smoothMoveCamera ( x1, y1, z1, x1t, y1t, z1t, x2, y2, z2, x2t, y2t, z2t, time ) 
    if(sm.moov == 1) then return false end 
    sm.object1 = createObject ( 1337, x1, y1, z1 ) 
    sm.object2 = createObject ( 1337, x1t, y1t, z1t ) 
    setElementAlpha ( sm.object1, 0 ) 
    setElementAlpha ( sm.object2, 0 ) 
    setObjectScale(sm.object1, 0.01) 
    setObjectScale(sm.object2, 0.01) 
    moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, "InOutQuad" ) 
    moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, "InOutQuad" ) 
  
    addEventHandler ( "onClientPreRender", getRootElement(), camRender ) 
    sm.moov = 1 
    setTimer ( removeCamHandler, time, 1 ) 
    setTimer ( destroyElement, time, 1, sm.object1 ) 
    setTimer ( destroyElement, time, 1, sm.object2 ) 
    return true 
end 
  
smoothMoveCamera ( 1055.4643554688, -2122.0646972656, 83.747100830078, 1054.6900634766, -2121.4748535156, 83.517967224121, 1480, -1773, 108, 1480, -1688, 13, 200 ) 

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