load object "robot.x",1
load object "gun.x",2
make mesh from object 2,1
delete object 2
add limb 1,1,1
offset limb 1,1,0,180,0
delete mesh 1

now assuming the robot is 6ft tall in DarkBasic Units, this will now have the Robot as Limb 0 and Gun as Limb 1.
As you've offset the weapon instead of loading in position it takes the axis from the offset position rather than robots axis
you use this to have lots of objects as a single object, however you can still control these sub-objects using rotate limb blah blah ...
for more info check the Help Document thats what its there for!!
Anata aru kowagaru no watashi! 