ResetWorldSounds: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
JavadOmidi (talk | contribs) |
||
Line 15: | Line 15: | ||
==Requirements== | ==Requirements== | ||
{{Requirements|n/a|1.3.0-9.04134|}} | {{Requirements|n/a|1.3.0-9.04134|}} | ||
==Example== | |||
By this command player can choose to reset world sounds to the default setting if it has been changed before using '''setWorldSoundEnabled''' | |||
<syntaxhighlight lang="lua"> | |||
function iWantTheDefaultSounds() | |||
resetWorldSounds() | |||
end | |||
addCommandHandler('resetSounds' , iWantTheDefaultSounds ) | |||
</syntaxhighlight> | |||
==See Also== | ==See Also== | ||
{{Client world functions}} | {{Client world functions}} |
Revision as of 09:31, 28 October 2019
Script Example Missing Function ResetWorldSounds needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
This function is used to reset the world sounds to the default setting.
Syntax
bool resetWorldSounds()
Returns
Returns true if the world sounds were reset, false otherwise.
Requirements
This template will be deleted.
Example
By this command player can choose to reset world sounds to the default setting if it has been changed before using setWorldSoundEnabled
function iWantTheDefaultSounds() resetWorldSounds() end addCommandHandler('resetSounds' , iWantTheDefaultSounds )
See Also
- createSWATRope
- getBirdsEnabled
- getCoronaReflectionsEnabled
- getGarageBoundingBox
- getGaragePosition
- getGarageSize
- getGroundPosition
- getInteriorFurnitureEnabled
- getNearClipDistance
- getPedsLODDistance
- getRoofPosition
- getScreenFromWorldPosition
- getVehiclesLODDistance
- getWorldFromScreenPosition
- isAmbientSoundEnabled
- isLineOfSightClear
- isWorldSoundEnabled
- processLineOfSight
- resetAmbientSounds
- resetBlurLevel
- resetColorFilter
- resetCoronaReflectionsEnabled
- resetNearClipDistance
- resetPedsLODDistance
- resetVehiclesLODDistance
- resetWorldSounds
- setAmbientSoundEnabled
- setBirdsEnabled
- setColorFilter
- setCoronaReflectionsEnabled
- setInteriorFurnitureEnabled
- setInteriorSoundsEnabled
- setNearClipDistance
- setPedsLODDistance
- setVehiclesLODDistance
- setWorldSoundEnabled
- testLineAgainstWater
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel