Yaw, pitch and roll.

I want to make a vehicle (in this case, a spaceship) yaw, pitch, and roll, depending if the player tells it to turn up, or sideways, etc.

The only thing is, this needs to be variable, so it can be used for different spaceships.

Can anyone help?

You probably need a spaceship class or monobehaviour which has this information.

Every game object with a transform inherently has these values, so your decision comes down to modifying it based on physics, design-driven, or a combination of values.

sweet, thanks.