Search the Community
Showing results for tags 'Third Person'.
I have a third person character controller, the character has pickmode(0). I can walk around and have obstacles between the player and the cam , but nothing happens? the self.pivot is a pivot which is at the center of the character (the camera focus). updateworld: if self.entity.world:Pick(self.pivot:GetPosition(),self.camera:GetPosition(),pickinfo,0,true) then local model2 = Model:Box() model2:SetPickMode(0) model2:SetPosition(pickinfo.position) model2:SetColor(0,1,0) System:Print(">> PICKED") --self.camera:SetPosition(pickinfo.position) end
Can anybody send me a template script for a third person control scheme that of old school games? I'll show a couple of examples of what I'm trying to code, but I'm still new to LUA and would like a template to work off and learn! I'd like my camera to act similar to either of those and the character to control in that "tank controls" movement.