Jump to content

Recommended Posts

Maxwelltalker component in the base game has some interesting lines:

--zoom in
TheCamera:SetOffset( (Vector3(self.inst.Transform:GetWorldPosition()) - Vector3(self.inst.wilson.Transform:GetWorldPosition()))*.5  + Vector3(0,2,0) )
TheCamera:SetDistance(15)
TheCamera:Snap()
GetPlayer().HUD:Hide()

 

I'm confident this is the code that sets the camera at the beginning. Reset using

TheCamera:SetDefault()

 

Also, the pig king's prefab file should help you with retrieving the camera angle, as he throws gold at the camera.

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
×
  • Create New...