I don't think I know how to make it all one object. i just made it two parts so I have the gun update to the origin of the tank. How would you make it all one object? Also I plan to have multiple tanks and guns so the basic tank/gun is just the parent for the others.
So I changed my script lines to:
if(angle_difference(image_angle,obj_player.image_angle) (<,>,=) (My max yaw/pitch){}
This only does what I had before but in a glitched way.(It flings around when I aim up, that is besides the point. I can fix that.) It doesn't adjust the gun's yaw and pitch. I probably didn't use it right though. I guess I am kinda asking how to implement this because I haven't done anything like this before.(Topic should probably be moved)