• Problem with ManipulateBoneAngles reset
    0 replies, posted
Hello, im currently working with ManipulateBoneAngles and it is working so far. My only Problem currently is that it wont get resetted it just stays like that. It is hooked up with a SWEP This is what i use to create the Angle [CODE] local rhand = vm:LookupBone("ValveBiped.Bip01_R_Forearm") vm:ManipulateBoneAngles(rhand, Angle(-65,36,-139)) local lhand = vm:LookupBone("ValveBiped.Bip01_L_Forearm") vm:ManipulateBoneAngles(lhand, Angle(52,-7,81))[/CODE] And i want to reset it with this [CODE] function SWEP:ResetBonePositions(vm) local rrhand = vm:LookupBone("ValveBiped.Bip01_R_Forearm") local llhand = vm:LookupBone("ValveBiped.Bip01_L_Forearm") vm:ManipulateBoneAngles( rrhand, Angle(0, 0, 0) ) vm:ManipulateBoneAngles( llhand, Angle(0, 0, 0) ) print( "resetbones" ) end [/CODE] The SWEP:ResetBonePositions is the last Function that runs but it still wont reset it What is the cause for that ?
Sorry, you need to Log In to post a reply to this thread.