Jump to content

Over the shoulder camera view style.


TomPlays

Recommended Posts

  • Moderators

Well this will do it, without rendering with setCameraMatrix. But aiming with the gun is kinda impossible.

local cam = getCamera() 
setElementPosition( cam, 0,0,0 ) 
attachElements( cam, localPlayer, 0.2,-2,0.8, 0,0,0 ) 

Link to comment

Well, here's my code. I have no Idea what I'm doing btw, so if someone could help me :DD

function setCameraOnPlayerJoin() 
local cam = getCamera() 
setElementPosition( cam, 0,0,0 ) 
attachElements( cam, getLocalPlayer, 0.2,-15,0.8, 0,0,0 ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) 

but i get error attempt to call global 'getCamera' (a nil value) on line 2

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