Union Bytes EngineModulesSoundsSetSoundRange

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystickLightMaterialMathMeshNetworkNodeObjectParticlePhysicShaderSounds
ExamineSoundsFreeSoundGetSoundLengthGetSoundStateIsSoundLoadSoundDefinitionLoadSoundFileMoveSoundPauseSoundPlaySoundResumeSoundRotateSoundSetCollisionSoundSetSoundConeSetSoundDirectionSetSoundFrequencySetSoundRangeSetSoundStateSetSoundVolumeSoundSoundIDStopSoundUnsetCollisionSound
SpriteTexture

SetSoundRange

Description

Sets the audible range of the specified sound.

Syntax

UBE_SetSoundRange( Sound.i, MaxDistance.f [, MinDistance.f] )

Parameters

Sound The number of the sound.
MaxDistance The distance in local units after the audibal volume is zero. If this value is set to #UBE_SOUND_INFINITY the range effect is off (default setting) and the audibal volume is equal to the sound volume on each distance.
MinDistance The distance in local units in which the audibal volume is the sound volume. By default this distance is set to 0.0 and is ignored if MaxDistance is set to #UBE_SOUND_INFINITY.

Return value

None

Remarks

Between minimum and maximum distance the audibal volume is decreasing gradually from sound volume to zero.

See also

Union Bytes | Login