1: You might do it this way when you want to create an fps:
`get camera values
posx# = camera position x()
posy# = camera position y()
posz# = camera position z()
angy# = camera angle y()
offsetx# = 1.0
offsety# = 1.0
`work out gun position
gunx# = newxvalue(posx#,wrapvalue(angy# + 90), offsetx#)
gunz# = newzvalue(posz#,wrapvalue(angy# + 90), offsetx#)
guny# = posy# - offsety#
`update gun
position object gun,gunx#,guny#,gunz#
set object to camera orientation gun
2:
Your minimum camera range might be too big, becoming parts of the gun not visible.
Try using the code
set camera range 0.01,10000
wich sets the minimum camera range to 0.01 and max to 10000.