I have set a subroutine with a custom 3d object which it shows as it should in 3D, the problem starts when I use a For_To_Next operation, the 3D object disappears totally.
If I use a more simple object the For_To_next works.
Calling the subroutine alone it works:
When For_To_Next is enable, nothing shows:
If I use exactly the same For_To_Next with a simple block object, it works:
I'm clueless about what is happening.
`gosub 400` (which is totally valid!) and `gosub "400"` are different things, tho.
And what makes this unlikely is that the single `gosub 400` outside the loop works.
As mentioned, without the whole script everybody is blind.
If you post the whole script it would be easy to know what's happening.
But the first comment is likely the solution.
I just tried by putting the BLOCK in a subroutine and that worked fine.
So I would suspect something in the 400 subroutine.
Did you forget the RETURN maybe?