Jump to content

Respawn


TheIceman1

Recommended Posts

Why this show me "matrix camera" when im killed only to 1 second,and when i respawn then this show me "fadeCamera"?

function allsaints () 
if (  isElementWithinColShape ( source, allsaintsC ) ) then 
    fadeCamera( source, true ) 
    setCameraMatrix( source, 1468.8785400391, -919.25317382813, 100.153465271, 1527.7, -1685.8, 99.881813049316 ) 
    setTimer(setElementPosition, 10000, 1, source, 1178.51, -1324.44, 14.13 ) 
    setTimer ( fadeCamera, 10000, 1, source, false ) 
end 
end 
addEventHandler ( "onPlayerWasted", root, allsaints ) 

Link to comment
function allsaints ( ) 
    if ( isElementWithinColShape ( source, allsaintsC ) ) then 
        fadeCamera( source, true ) 
        setCameraMatrix ( source, 1468.8785400391, -919.25317382813, 100.153465271, 1527.7, -1685.8, 99.881813049316 ) 
        setTimer ( 
            function ( thePlayer ) 
                setElementPosition ( thePlayer, 1178.51, -1324.44, 14.13 ) 
                setCameraTarget ( thePlayer ) 
                fadeCamera ( thePlayer, true ) 
            end 
            ,10000, 1, source 
        ) 
    end 
end 
addEventHandler ( "onPlayerWasted", root, allsaints ) 

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