Jump to content

What's wrong with this?


Lloyd Logan

Recommended Posts

Posted

Why doesn't this set the matrix of the camera? (CLIENT)

function cmatrix() 
    setCameraMatrix(2056.1774902344,1181.1239013672,56.897701263428,2057.064453125,1180.6881103516,56.744400024414,0,70) 
end 
addEventHandler("onClientPlayerJoin", cmatrix) 

  • Moderators
Posted

Because it will trigger for all players except for your self. Also you forgot to define the root element.

Use:

addEventHandler("onClientResourceStart",resourceRoot, cmatrix) 

Also:

fadeCamera(true) 

Posted
Because it will trigger for all players except for your self. Also you forgot to define the root element.

Use:

addEventHandler("onClientResourceStart",resourceRoot, cmatrix) 

Thanks! I didn't know I needed the resourceRoot though!

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