Jump to content

setCameraMatrix


Recommended Posts

hi guys,im having a problem of course,

i want to make a script which should put camera on specified position for 5 seconds and then it should spawn the player and put camera on right position so that it keeps following him but i don't know how to fix this script and how to finish it can anyone help me?

feel free to laugh

function onPlayerJoin() 
local joinedPlayerName = getPlayerName ( source ) 
setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
setTimer ( onPlayerJoin, 5000, 1 )  
end 

Link to comment

try( no tested)

function onPlayerJoin() 
local joinedPlayerName = getPlayerName ( source ) 
setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
setTimer(function() 
setCameraTarget(source)end,5000,1) 
end 
addEventHandler("onPlayerJoin",root,onPlayerJoin) 

Edited by Guest
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...