Skip to content

JSINavBall

MOARdV edited this page Nov 30, 2015 · 2 revisions

JSINavBall is a replacement for InternalNavBall. It is intended to provide two extra configuration options for the stock navball prop:

MODULE
{
    name = JSINavBall 
    navBallName = NavSphereRotGO
    variableName = BRAKES
    range = -0.1, 0.1
    maxAngleChange = 180
}
  • navBallName -- Required. Exactly like the stock navball's config.
  • variableName -- Required. Name of the variable used to enable / disable the nav ball.
  • range -- Required. A comma-separated pair of numbers or Defined Variables that enable the navball. When the variable in variableName is between these two values, the nav ball is enabled.
  • maxAngleChange -- Optional, defaults to 180. The maximum distance the navball can move per second, measured in degrees. This provides for smoothing when the navball is switched on and it has to rotate a long distance to activate.

In the above example, the navball functions only when the brakes are off (yes, it's a stupid way to enable the navball - it's just for illustration).

Clone this wiki locally