Jump to content

kill cam


Desaster

Recommended Posts

Posted

Try setting the camera to the player.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I tryed

addEventHandler ( 'onPlayerLogin', getRootElement ( ), 
function() 
    killPed(source) 
    --spawnPlayer (source, 0, 0, 5, 0, 0, 0, 0, spawnTeam) 
    setCameraMatrix(source, -2246.4399414063, 0.65520000457764, 49.66189956665, -2247.34375, 0.70009028911591, 49.236320495605) 
end 
) 
  

it set the camera there but then I see the player

xMWUKnl.gif
Posted

Move the setCameraMatrix into a 'onPlayerWasted' event.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

still the same

addEventHandler ( 'onPlayerLogin', getRootElement ( ), 
function() 
    --fadeCamera ( source, false, 1, 0, 0, 0 ) 
    --setTimer ( fade, 10000, 10, source ) 
    killPed(source) 
    --spawnPlayer (source, 0, 0, 5, 0, 0, 0, 0, spawnTeam) 
end 
) 
addEventHandler ( 'onPlayerWasted', getRootElement ( ), 
function( source ) 
    setCameraMatrix(source, -2246.4399414063, 0.65520000457764, 49.66189956665, -2247.34375, 0.70009028911591, 49.236320495605) 
end 
) 
  

xMWUKnl.gif
Posted

Remove 'source' from the function name.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Moderators
Posted

function( source )

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

yup I did that but still not work I see the dancing camera

the problem is that it set the camera matrix correct then I see that dancing camera got it ?

xMWUKnl.gif
Posted
addEventHandler ( 'onPlayerWasted', getRootElement ( ), 
function() 
    setCameraTarget(source, source) 
end 
) 

I guess.

And now Aurora is back again, pm for more info.

Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA.

Ex. Developer at Community of Social Gamers - CSG

Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP

9o6E8.png Ab-47

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