So, I’m trying to make a sort of pickaxe, but it says I need a 4th argument. So, I just put in a 0. But, whenever I rotate the pickaxe with the 4th argument set, the screen just fills with the color of the handle. I tried setting a variable to the current rotation and using that as the 4th argument, but, still same thing. What is that 4th argument for, and what should I put there? Rotate code:
function on_input(self, action_id, action) if action_id == hash("click") then self.r = go.get_rotation() go.set_rotation(vmath.quat(0,0,-45,self.r.w)) pick = true if action.released then go.set_rotation(vmath.quat(0,0,0,self.r.w)) pick = false end end end
Edit: I’ve been messing around, and I managed to make it not cover the screen, but now the pickaxe just dissappears. Can anyone give me any way to rotate this dang pickaxe?