Stevie G #1 A couple of things .. make sure shipx,y & z are floats and also dist. If the ship is a child of something make sure you reference the global space position .. i.e. entityx( ship , true )