Script v1.4.4.0
- Handtools
- Events
- Objects
- Placeables
- Triggers
- Utils
- BaleUtil
- ConfigurationUtil
- DebugUtil
- FillUtil
- FruitUtil
- FSUtils
- GameSettings
- MaterialUtil
- ObjectChangeUtil
- ParticleUtil
- SplitUtil
- TipUtil
- TreePlantUtil
- Utils
- Vehicles
- Specializations
Engine v7.0.0.2
- General
- Entity
- Node
- Scenegraph
- Lighting
- Camera
- Shape
- Particle System
- Physics
- Spline
- Animation
- Overlays
- Sound
- Input
- XML
- Network
- Callbacks
- Text Rendering
- Terrain Detail
- Tire Track
- Editor
- Rendering
- String
- Math
- I3D
- Fillplanes
Foundation Reference
GameSettings
DescriptionClass handling global settings. Global instance is g_gameSettingsFunctions
getValue
DescriptionReturns the setting value with the given nameDefinition
Settings in the game:
-maxNumMirrors
-lightsProfile
-realBeaconLights
-motorStopTimerDuration
-uiScale
-fovy
-isTrainTabbable
-radioVehicleOnly
-radioIsActive
-useColorblindMode
-useMiles
-showTriggerMarker
-resetCamera
-useWorldCamera
-invertYLook
-showHelpIcons
-showHelpMenu
-radioVolume
-vehicleVolume
-environmentVolume
-cameraSensitivity
-vehicleArmSensitivity
-ingameMapState
-ingameMapFilter
-moneyUnit
-masterVolume
-musicVolume
getValue(string name)Arguments
string | name | name of the setting |
mixed | value | Value of the setting. The type depends on the setting |
setValue
DescriptionChanged the setting value with the given nameDefinition
setValue(string name, mixed value, boolean doSave)Arguments
string | name | name of the setting |
mixed | value | value to set the setting to |
boolean | doSave | If true, the settings are saved persistently, otherwise it will only be safed when another call triggers it |
boolean | successful | Returns true, if the setting was changed |