expert975 Posted October 18, 2015 Share Posted October 18, 2015 Is there a way to set the camera to another position other than the player's entity?Even better if it's possible to do it on the server side. Thanks. Link to comment https://forums.kleientertainment.com/forums/topic/58585-move-player-camera-at-will/ Share on other sites More sharing options...
Mobbstar Posted October 22, 2015 Share Posted October 22, 2015 Maxwelltalker component in the base game has some interesting lines:--zoom inTheCamera: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 usingTheCamera:SetDefault() Also, the pig king's prefab file should help you with retrieving the camera angle, as he throws gold at the camera. Link to comment https://forums.kleientertainment.com/forums/topic/58585-move-player-camera-at-will/#findComment-681962 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now