What edition and version of 3DGS do you have?
How to find out:
- Open Wed
- Go to Help -> About WED...
- A little box will open with all the details about your edition/version

Did you try the little snippet I posted?
And I mean just that little snippet, comment every other code that might rotate the ship.