check this out:i did what you told me above in which my camera is linked to my player so i used my players position

i made variables for the player and object(ship) i put all of it in the main loop
playerzpos#=object position z(2)
shipzpos#=object position z(3)
if playerzpos#-shipzpos# > 1500 then (im getting a error in this first line)
hide object 3
else
show object 3
endif
if my players z position minus the objects z position is greater then 1500(being how far the fog will let me see)then hide the object(ship)or if it isnt then dont hide it.